diff libgui/src/main-window.h @ 15987:47a4c92924a7

gui: prevent error messages at start-up (regression from changeset 6c0fce0632a4) * main-window.h: declaration of new function connect_visibility_changed () * main-window.cc (connect_visibility_changed): new function for connecting the signales emitted when the visibility of a widget changes; this function must be called after the main window is shown * main-window.cc (construct): do not connect the signals here * octave-gui.cc (octave_start_gui): call connect_visibility_changed () just before calling application.exec ()
author Torsten <ttl@justmail.de>
date Tue, 29 Jan 2013 18:24:16 +0100
parents 6c0fce0632a4
children afc4e08f2143
line wrap: on
line diff
--- a/libgui/src/main-window.h	Sun Jan 27 12:29:00 2013 +0100
+++ b/libgui/src/main-window.h	Tue Jan 29 18:24:16 2013 +0100
@@ -123,6 +123,7 @@
 
   void read_settings ();
   void write_settings ();
+  void connect_visibility_changed ();
 
 protected:
   void closeEvent (QCloseEvent * closeEvent);