[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars
From:       Rafael Fernández López <ereslibre () kde ! org>
Date:       2008-09-05 22:07:23
Message-ID: 1220652443.396905.27065.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 857635 by ereslibre:

No need to call to setupGUI after createGUI. This only makes some actions not being
added. This "workaround" is no longer needed.


 M  +2 -5      kstarsinit.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/kstarsinit.cpp #857634:857635
@@ -730,16 +730,13 @@
     initStatusBar();
     initActions();
 
+    setupGUI(StandardWindowOptions (Default & ~Create));
+
 #ifdef Q_WS_WIN
     createGUI("kstarsui-win.rc");
 #else
     createGUI("kstarsui.rc");
 #endif
-    StandardWindowOptions opt = Default;
-    opt &= ~Create;
-    setupGUI(opt); // setupGUI needs to be called after createGUI if no Create flag is passed to
-                   // setupGUI. Once you have called to createGUI you don't want for it to be called
-                   // again. (ereslibre)
 
     //Initialize FOV symbol from options
     data()->fovSymbol.setName( Options::fOVName() );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic