Mercurial > hg > octave-nkf
diff libgui/src/main-window.cc @ 18001:a51e4904ca1b
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
author | Torsten <ttl@justmail.de> |
---|---|
date | Mon, 25 Nov 2013 19:10:48 +0100 |
parents | b1271fc57779 |
children | 67978cb5d269 |
line wrap: on
line diff
--- a/libgui/src/main-window.cc +++ b/libgui/src/main-window.cc @@ -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 ());