[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-08-27 18:38:20
Message-ID: 1219862300.042198.28035.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 853447 by ereslibre:
Backport of fix. setupGUI needs to be called after createGUI is, so the window is restored
properly. Also, we remove the Create flag from the setupGUI call, since createGUI has already
been called, so it doesn't get called twice
M +6 -1 kstarsinit.cpp
--- branches/KDE/4.1/kdeedu/kstars/kstars/kstarsinit.cpp #853446:853447
@@ -482,7 +482,6 @@
connect( ta, SIGNAL( triggered() ), this, SLOT( slotViewToolBar() ) );
setXMLFile( "kstarsui.rc" );
- setupGUI();
if (Options::fitsSaveDirectory().isEmpty())
Options::setFitsSaveDirectory(QDir:: homePath());
@@ -726,6 +725,12 @@
#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() );
data()->fovSymbol.setSize( Options::fOVSize() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic