mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02: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
2 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue