mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 21:59:10 +02:00
qt: Handle exceptions in SendCoinsDialog::sendButtonClicked slot
Also, uic automatic connection replaced with an explicit one.
This commit is contained in:
@@ -129,6 +129,8 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *p
|
||||
ui->customFee->SetAllowEmpty(false);
|
||||
ui->customFee->setValue(settings.value("nTransactionFee").toLongLong());
|
||||
minimizeFeeSection(settings.value("fFeeSectionMinimized").toBool());
|
||||
|
||||
GUIUtil::ExceptionSafeConnect(ui->sendButton, &QPushButton::clicked, this, &SendCoinsDialog::sendButtonClicked);
|
||||
}
|
||||
|
||||
void SendCoinsDialog::setClientModel(ClientModel *_clientModel)
|
||||
@@ -375,7 +377,7 @@ bool SendCoinsDialog::PrepareSendText(QString& question_string, QString& informa
|
||||
return true;
|
||||
}
|
||||
|
||||
void SendCoinsDialog::on_sendButton_clicked()
|
||||
void SendCoinsDialog::sendButtonClicked([[maybe_unused]] bool checked)
|
||||
{
|
||||
if(!model || !model->getOptionsModel())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user