Skip to content

Commit 1ac2bc7

Browse files
committed
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.
1 parent bc00e13 commit 1ac2bc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/qt/transactionview.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
199199
connect(transactionView, &QTableView::doubleClicked, this, &TransactionView::doubleClicked);
200200
connect(transactionView, &QTableView::customContextMenuRequested, this, &TransactionView::contextualMenu);
201201

202-
connect(bumpFeeAction, &QAction::triggered, this, &TransactionView::bumpFee);
202+
GUIUtil::ExceptionSafeConnect(bumpFeeAction, &QAction::triggered, this, &TransactionView::bumpFee);
203203
connect(abandonAction, &QAction::triggered, this, &TransactionView::abandonTx);
204204
connect(copyAddressAction, &QAction::triggered, this, &TransactionView::copyAddress);
205205
connect(copyLabelAction, &QAction::triggered, this, &TransactionView::copyLabel);
@@ -424,7 +424,7 @@ void TransactionView::abandonTx()
424424
model->getTransactionTableModel()->updateTransaction(hashQStr, CT_UPDATED, false);
425425
}
426426

427-
void TransactionView::bumpFee()
427+
void TransactionView::bumpFee([[maybe_unused]] bool checked)
428428
{
429429
if(!transactionView || !transactionView->selectionModel())
430430
return;

src/qt/transactionview.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private Q_SLOTS:
9999
void openThirdPartyTxUrl(QString url);
100100
void updateWatchOnlyColumn(bool fHaveWatchOnly);
101101
void abandonTx();
102-
void bumpFee();
102+
void bumpFee(bool checked);
103103

104104
Q_SIGNALS:
105105
void doubleClicked(const QModelIndex&);

0 commit comments

Comments
 (0)