Mercurial > hg > octave-nkf
changeset 17997:8dd427538147
fix restoring the geometry of docked widgets (bug #40691)
* main-window.cc (set_window_layout): hide main win during restoring geometry
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 24 Nov 2013 22:06:20 +0100 |
parents | 260b44c0ed69 |
children | f82fd6854dbf |
files | libgui/src/main-window.cc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/main-window.cc +++ b/libgui/src/main-window.cc @@ -909,11 +909,15 @@ } } - // show main first but minimized to avoid flickering + // 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 (); + // restore geomoetry of main window restoreState (settings->value ("MainWindow/windowState").toByteArray ()); restoreGeometry (settings->value ("MainWindow/geometry").toByteArray ()); + // show main window show (); // show floating widgets after main win to ensure "Octave" in central menu