# HG changeset patch # User John Donoghue # Date 1425319651 18000 # Node ID 17d21d68888d087c1c9a75831228edb75ec51728 # Parent fa68a3f7dd8a7b3265789109467e5490b6e501d9 GUI: force show of welcome wizard when displayed (Bug #41074) * libgui/src/welcome-wizard.cc (top level): include windows.h if __WIN32__ (welcome_wizard::welcome_wizard): call win32 API ShowWindow if __WIN32__ diff -r fa68a3f7dd8a -r 17d21d68888d libgui/src/welcome-wizard.cc --- a/libgui/src/welcome-wizard.cc Sun Mar 01 22:52:14 2015 +0000 +++ b/libgui/src/welcome-wizard.cc Mon Mar 02 13:07:31 2015 -0500 @@ -30,6 +30,11 @@ #include #include +#ifdef __WIN32__ + #define WIN32_LEAN_AND_MEAN + #include +#endif + #include "welcome-wizard.h" #include "resource-manager.h" @@ -283,6 +288,11 @@ setMinimumSize (QSize (600, 480)); show_page (); + +#ifdef __WIN32__ + // HACK to forceshow of dialog if started minimized + ShowWindow((HWND)winId(), SW_SHOWNORMAL); +#endif } void