mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
qt: Handle exceptions in TransactionView::bumpFee slot
Also the parameter list of the TransactionView::bumpFee slot is made compatible with one of the QAction::triggered signal.
This commit is contained in:
parent
bc00e13bc8
commit
1ac2bc7ac0
@ -199,7 +199,7 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
|
||||
connect(transactionView, &QTableView::doubleClicked, this, &TransactionView::doubleClicked);
|
||||
connect(transactionView, &QTableView::customContextMenuRequested, this, &TransactionView::contextualMenu);
|
||||
|
||||
connect(bumpFeeAction, &QAction::triggered, this, &TransactionView::bumpFee);
|
||||
GUIUtil::ExceptionSafeConnect(bumpFeeAction, &QAction::triggered, this, &TransactionView::bumpFee);
|
||||
connect(abandonAction, &QAction::triggered, this, &TransactionView::abandonTx);
|
||||
connect(copyAddressAction, &QAction::triggered, this, &TransactionView::copyAddress);
|
||||
connect(copyLabelAction, &QAction::triggered, this, &TransactionView::copyLabel);
|
||||
@ -424,7 +424,7 @@ void TransactionView::abandonTx()
|
||||
model->getTransactionTableModel()->updateTransaction(hashQStr, CT_UPDATED, false);
|
||||
}
|
||||
|
||||
void TransactionView::bumpFee()
|
||||
void TransactionView::bumpFee([[maybe_unused]] bool checked)
|
||||
{
|
||||
if(!transactionView || !transactionView->selectionModel())
|
||||
return;
|
||||
|
@ -99,7 +99,7 @@ private Q_SLOTS:
|
||||
void openThirdPartyTxUrl(QString url);
|
||||
void updateWatchOnlyColumn(bool fHaveWatchOnly);
|
||||
void abandonTx();
|
||||
void bumpFee();
|
||||
void bumpFee(bool checked);
|
||||
|
||||
Q_SIGNALS:
|
||||
void doubleClicked(const QModelIndex&);
|
||||
|
Loading…
Reference in New Issue
Block a user