diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-12-23 09:52:55 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-12-23 09:53:30 +0100 |
| commit | 362755d01817891defcbae696d34f0ff8266a1d0 (patch) | |
| tree | e8af54f2d8a7cbc93d33ca29ef56689a58113411 /src/qt/bitcoingui.cpp | |
| parent | Merge pull request #3451 (diff) | |
| parent | qt: Prevent non-functional GUI from popping up during Init (diff) | |
| download | discoin-362755d01817891defcbae696d34f0ff8266a1d0.tar.xz discoin-362755d01817891defcbae696d34f0ff8266a1d0.zip | |
Merge pull request #3427
1ad2636 qt: Prevent non-functional GUI from popping up during Init (Wladimir J. van der Laan)
Diffstat (limited to 'src/qt/bitcoingui.cpp')
| -rw-r--r-- | src/qt/bitcoingui.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 2d0f51a3f..6be5a6401 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -684,8 +684,11 @@ void BitcoinGUI::message(const QString &title, const QString &message, unsigned if (!(buttons = (QMessageBox::StandardButton)(style & CClientUIInterface::BTN_MASK))) buttons = QMessageBox::Ok; - // Ensure we get users attention - showNormalIfMinimized(); + // Ensure we get users attention, but only if main window is visible + // as we don't want to pop up the main window for messages that happen before + // initialization is finished. + if(!(style & CClientUIInterface::NOSHOWGUI)) + showNormalIfMinimized(); QMessageBox mBox((QMessageBox::Icon)nMBoxIcon, strTitle, message, buttons, this); int r = mBox.exec(); if (ret != NULL) |