diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-12-16 18:13:31 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-12-16 18:51:30 +0100 |
| commit | 1ad26362c92c7d5678c24df85fd7b9ab1d3d34fe (patch) | |
| tree | 7bc3446ccc10fe5c571b4b0bcbe148e715543c7d /src/init.cpp | |
| parent | Merge pull request #3425 (diff) | |
| download | discoin-1ad26362c92c7d5678c24df85fd7b9ab1d3d34fe.tar.xz discoin-1ad26362c92c7d5678c24df85fd7b9ab1d3d34fe.zip | |
qt: Prevent non-functional GUI from popping up during Init
When a InitError or InitWarning happens, the
GUI pops up but is unusable (until Init finishes).
This is caused by showNormalIfMinimized. Add a message
flag to skip this call for Init errors or warnings.
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 40dd2d04c..d6026aa3f 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -164,13 +164,13 @@ void HandleSIGHUP(int) bool static InitError(const std::string &str) { - uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_ERROR); + uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_ERROR | CClientUIInterface::NOSHOWGUI); return false; } bool static InitWarning(const std::string &str) { - uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_WARNING); + uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_WARNING | CClientUIInterface::NOSHOWGUI); return true; } |