# HG changeset patch # User Torsten # Date 1419857562 -3600 # Node ID d57edbd761aa28e43625ff57a90205bb63d1286e # Parent 2f0c21339e9d7ccfb55367adc971694c1977025d make sure the console window gets active custom style at beginning * main-window.cc (construct): earlier connect to the focus changed signal diff -r 2f0c21339e9d -r d57edbd761aa libgui/src/main-window.cc --- a/libgui/src/main-window.cc Sat Dec 27 19:32:42 2014 +0100 +++ b/libgui/src/main-window.cc Mon Dec 29 13:52:42 2014 +0100 @@ -1275,6 +1275,9 @@ connect (qApp, SIGNAL (aboutToQuit ()), this, SLOT (prepare_to_exit ())); + connect (qApp, SIGNAL (focusChanged (QWidget*, QWidget*)), + this, SLOT(focus_changed (QWidget*, QWidget*))); + connect (this, SIGNAL (settings_changed (const QSettings *)), this, SLOT (notice_settings (const QSettings *))); @@ -1326,9 +1329,6 @@ construct_octave_qt_link (); - connect (qApp, SIGNAL (focusChanged (QWidget*, QWidget*)), - this, SLOT(focus_changed (QWidget*, QWidget*))); - #ifdef HAVE_QSCINTILLA connect (this, SIGNAL (insert_debugger_pointer_signal (const QString&, int)),