From 1ad26362c92c7d5678c24df85fd7b9ab1d3d34fe Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Mon, 16 Dec 2013 18:13:31 +0100 Subject: 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. --- src/ui_interface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui_interface.h') diff --git a/src/ui_interface.h b/src/ui_interface.h index 2378d5dfbb..83341af96c 100644 --- a/src/ui_interface.h +++ b/src/ui_interface.h @@ -62,6 +62,8 @@ public: /** Force blocking, modal message box dialog (not just OS notification) */ MODAL = 0x10000000U, + /** Don't bring GUI to foreground. Use for messages during initialization */ + NOSHOWGUI = 0x20000000U, /** Predefined combinations for certain default usage cases */ MSG_INFORMATION = ICON_INFORMATION, -- cgit v1.2.3