summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-07 10:15:33 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-07 10:15:33 (GMT)
commit53fbf26570bf052601c1114a71b60afa62fee2dd (patch)
tree640795736e33f4157dae7112b16578cd8a587980
parent329eb0fbf6382094adba978bcfbd1f8c8c503203 (diff)
Show splash first thing
-rw-r--r--kstars/kstarslite.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/kstars/kstarslite.cpp b/kstars/kstarslite.cpp
index b6d3bcf..b97137b 100644
--- a/kstars/kstarslite.cpp
+++ b/kstars/kstarslite.cpp
@@ -54,6 +54,9 @@ KStarsLite::KStarsLite( bool doSplash, bool startClock, const QString &startDate
// Unlike KStars class we set pinstance at the beginning because SkyMapLite needs access to ClientManagerLite
pinstance = this;
+ if ( doSplash )
+ showSplash();
+
m_KStarsData = KStarsData::Create();
Q_ASSERT( m_KStarsData );
@@ -133,11 +136,7 @@ KStarsLite::KStarsLite( bool doSplash, bool startClock, const QString &startDate
if ( startClock ) StartClockRunning = Options::runClock();
// Setup splash screen
- if ( doSplash ) {
- showSplash();
- } else {
- connect( m_KStarsData, SIGNAL( progressText(QString) ), m_KStarsData, SLOT( slotConsoleMessage(QString) ) );
- }
+ connect( m_KStarsData, SIGNAL( progressText(QString) ), m_KStarsData, SLOT( slotConsoleMessage(QString) ) );
//set up Dark color scheme for application windows
DarkPalette = QPalette(QColor("darkred"), QColor("darkred"));
@@ -235,9 +234,7 @@ void KStarsLite::updateTime( const bool automaticDSTchange ) {
}
void KStarsLite::writeConfig() {
- bool rc = Options::self()->save();
- if (rc == false)
- int i=0;
+ Options::self()->save();
//Store current simulation time
//Refer to // FIXME: Used in kstarsdcop.cpp only in kstarsdata.cpp
//data()->StoredDate = data()->lt();