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

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

SVN commit 857636 by ereslibre:

Backport(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  


--- branches/KDE/4.1/kdeedu/kstars/kstars/kstarsinit.cpp #857635:857636
@@ -720,16 +720,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