Commit 35a3949b authored by Aneesh Dogra's avatar Aneesh Dogra Committed by Rishab Arora
Browse files

Update the local time before we update the timebox.

Fixes the issue with time displayed being one step behind.

BUG: 321028
BUG: 296829
REVIEW: 110973
parent 948cb92c
......@@ -559,9 +559,6 @@ void KStars::initStatusBar() {
}
void KStars::datainitFinished() {
//Add GUI elements to main window
buildGUI();
//Time-related connections
connect( data()->clock(), SIGNAL( timeAdvanced() ),
this, SLOT( updateTime() ) );
......@@ -570,6 +567,9 @@ void KStars::datainitFinished() {
connect( data()->clock(), SIGNAL( scaleChanged( float ) ),
map(), SLOT( slotClockSlewing() ) );
//Add GUI elements to main window
buildGUI();
connect( data(), SIGNAL( update() ), map(), SLOT( forceUpdateNow() ) );
connect( TimeStep, SIGNAL( scaleChanged(float) ), data(), SLOT( setTimeDirection( float ) ) );
connect( TimeStep, SIGNAL( scaleChanged(float) ),
......
Supports Markdown
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