TxInfoDialog: disable get tx key for incoming txs

This commit is contained in:
tobtoht 2021-10-21 19:55:55 +02:00
parent 2c07bd8a3a
commit 6c87a6a141
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View 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.