# HG changeset patch # User Torsten # Date 1385403048 -3600 # Node ID a51e4904ca1bfdbfeff983b55feb2b5c0ea898e9 # Parent b1271fc5777965446880a5f439b9361f23e480d4 fix window geometry at startup on windows * main-window.cc (set_window_layout): do not show main window before before restoring geometry when on windows diff -r b1271fc57779 -r a51e4904ca1b libgui/src/main-window.cc --- a/libgui/src/main-window.cc Mon Nov 25 18:59:20 2013 +0100 +++ b/libgui/src/main-window.cc Mon Nov 25 19:10:48 2013 +0100 @@ -909,11 +909,13 @@ } } +#if ! defined (Q_OS_WIN32) // show main first but minimized to avoid flickering, // otherwise the name of a floating widget is shown in a global menu bar showMinimized (); // hide again, otherwise the geometry is not exactly restored hide (); +#endif // restore geomoetry of main window restoreState (settings->value ("MainWindow/windowState").toByteArray ()); restoreGeometry (settings->value ("MainWindow/geometry").toByteArray ());