]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
TxInfoDialog: disable get tx key for incoming txs
authortobtoht <thotbot@protonmail.com>
Thu, 21 Oct 2021 17:55:55 +0000 (19:55 +0200)
committertobtoht <thotbot@protonmail.com>
Thu, 21 Oct 2021 17:55:55 +0000 (19:55 +0200)
src/dialog/TxInfoDialog.cpp

index 76a7ef43d4fd4c0b2e987c77b501770c3f151ae1..14920e5ac955d9236a244ff654c50f3c214978f1 100644 (file)
@@ -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.