From: tobtoht Date: Thu, 21 Oct 2021 17:55:55 +0000 (+0200) Subject: TxInfoDialog: disable get tx key for incoming txs X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=6c87a6a141e31eb652a8026c15814b3957b2a246;p=gamesguru%2Ffeather.git TxInfoDialog: disable get tx key for incoming txs --- diff --git a/src/dialog/TxInfoDialog.cpp b/src/dialog/TxInfoDialog.cpp index 76a7ef43..14920e5a 100644 --- a/src/dialog/TxInfoDialog.cpp +++ b/src/dialog/TxInfoDialog.cpp @@ -44,6 +44,12 @@ TxInfoDialog::TxInfoDialog(QSharedPointer 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.