aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoingui.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-01-19 09:38:51 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-01-19 09:38:51 +0200
commit70e4706093fd7b08a32f9638dace178852a9d249 (patch)
tree752ff65036b6752c92289d2d874416889ad5f733 /src/qt/bitcoingui.cpp
parent219417b388a0373f9eb71446e1b0499ab55dd3e2 (diff)
downloadbitcoin-70e4706093fd7b08a32f9638dace178852a9d249.tar.xz
Revert "refactor: Remove never used default parameter"
This reverts commit 7d0a8f4f530885cbf3870291f10f667326373bd1.
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r--src/qt/bitcoingui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index eb68074301..f22d33bf0a 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -1027,7 +1027,7 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, double nVer
progressBar->setToolTip(tooltip);
}
-void BitcoinGUI::message(const QString& title, QString message, unsigned int style)
+void BitcoinGUI::message(const QString& title, QString message, unsigned int style, bool* ret)
{
// Default title. On macOS, the window title is ignored (as required by the macOS Guidelines).
QString strTitle{PACKAGE_NAME};
@@ -1081,7 +1081,9 @@ void BitcoinGUI::message(const QString& title, QString message, unsigned int sty
showNormalIfMinimized();
QMessageBox mBox(static_cast<QMessageBox::Icon>(nMBoxIcon), strTitle, message, buttons, this);
mBox.setTextFormat(Qt::PlainText);
- mBox.exec();
+ int r = mBox.exec();
+ if (ret != nullptr)
+ *ret = r == QMessageBox::Ok;
} else {
notificator->notify(static_cast<Notificator::Class>(nNotifyIcon), strTitle, message);
}