Browse Source

TxInfoDialog: disable get tx key for incoming txs

1.0.0
tobtoht 1 month ago
parent
commit
6c87a6a141
Signed by: tobtoht GPG Key ID: 1CADD27F41F45C3C
  1. 6
      src/dialog/TxInfoDialog.cpp

6
src/dialog/TxInfoDialog.cpp

@ -44,6 +44,12 @@ TxInfoDialog::TxInfoDialog(QSharedPointer<AppContext> ctx, TransactionInfo *txIn
} else {
ui->btn_rebroadcastTx->hide();
}
if (txInfo->direction() == TransactionInfo::Direction_In) {
ui->btn_CopyTxKey->setDisabled(true);
ui->btn_CopyTxKey->setToolTip("No tx secret key available for incoming transactions.");
}
//
// if (txInfo->direction() == TransactionInfo::Direction_Out) {
// // TODO: this will not properly represent coinjoin-like transactions.

Loading…
Cancel
Save