# HG changeset patch # User Torsten # Date 1385327180 -3600 # Node ID 8dd4275381474c6d9e354f592528605cc0eec935 # Parent 260b44c0ed690b8d8fe678e3b62124917228fd32 fix restoring the geometry of docked widgets (bug #40691) * main-window.cc (set_window_layout): hide main win during restoring geometry diff -r 260b44c0ed69 -r 8dd427538147 libgui/src/main-window.cc --- a/libgui/src/main-window.cc Sun Nov 24 14:23:20 2013 -0500 +++ b/libgui/src/main-window.cc Sun Nov 24 22:06:20 2013 +0100 @@ -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