diff options
| author | Hennadii Stepanov <[email protected]> | 2020-01-16 20:42:57 +0200 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-01-16 20:42:57 +0200 |
| commit | 7d0a8f4f530885cbf3870291f10f667326373bd1 (patch) | |
| tree | aefe6185a9335d2f3cb740605b94e5ce7a3195b7 /src/qt/bitcoingui.cpp | |
| parent | Merge #17935: gui: hide HD & encryption icons when no wallet loaded (diff) | |
| download | discoin-7d0a8f4f530885cbf3870291f10f667326373bd1.tar.xz discoin-7d0a8f4f530885cbf3870291f10f667326373bd1.zip | |
refactor: Remove never used default parameter
Diffstat (limited to 'src/qt/bitcoingui.cpp')
| -rw-r--r-- | src/qt/bitcoingui.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index f22d33bf0..eb6807430 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, bool* ret) +void BitcoinGUI::message(const QString& title, QString message, unsigned int style) { // Default title. On macOS, the window title is ignored (as required by the macOS Guidelines). QString strTitle{PACKAGE_NAME}; @@ -1081,9 +1081,7 @@ 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); - int r = mBox.exec(); - if (ret != nullptr) - *ret = r == QMessageBox::Ok; + mBox.exec(); } else { notificator->notify(static_cast<Notificator::Class>(nNotifyIcon), strTitle, message); } |