Commit fcbacdf5 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Do not set time as it is already set in SimClock ctor

parent cb99a35f
...@@ -129,8 +129,11 @@ KStars::KStars( bool doSplash, bool clockrun, const QString &startdate ) ...@@ -129,8 +129,11 @@ KStars::KStars( bool doSplash, bool clockrun, const QString &startdate )
else else
data()->changeDateTime( KStarsDateTime::currentDateTimeUtc() ); data()->changeDateTime( KStarsDateTime::currentDateTimeUtc() );
} }
// JM 2016-11-15: Not need to set it again as it was initialized in the ctor of SimClock
/*
else else
data()->changeDateTime( KStarsDateTime::currentDateTimeUtc() ); data()->changeDateTime( KStarsDateTime::currentDateTimeUtc() );
*/
// Initialize clock. If --paused is not in the comand line, look in options // Initialize clock. If --paused is not in the comand line, look in options
if ( clockrun ) if ( clockrun )
......
...@@ -42,7 +42,7 @@ public: ...@@ -42,7 +42,7 @@ public:
* @param parent parent object for the clock * @param parent parent object for the clock
* @param when the date/time to which the SimClock should be initialized in UTC * @param when the date/time to which the SimClock should be initialized in UTC
*/ */
explicit SimClock(QObject *parent = 0, const KStarsDateTime &when = KStarsDateTime::currentDateTime() ); explicit SimClock(QObject *parent = 0, const KStarsDateTime &when = KStarsDateTime::currentDateTimeUtc() );
/** @return const reference to the current simulation Universal Time. */ /** @return const reference to the current simulation Universal Time. */
const KStarsDateTime& utc() const { return UTC; } const KStarsDateTime& utc() const { return UTC; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment