From 6c87a6a141e31eb652a8026c15814b3957b2a246 Mon Sep 17 00:00:00 2001 From: tobtoht <thotbot@protonmail.com> Date: Thu, 21 Oct 2021 19:55:55 +0200 Subject: [PATCH] TxInfoDialog: disable get tx key for incoming txs --- src/dialog/TxInfoDialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dialog/TxInfoDialog.cpp b/src/dialog/TxInfoDialog.cpp index 76a7ef4..14920e5 100644 --- a/src/dialog/TxInfoDialog.cpp +++ b/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.