Commit 3ba7caba authored by Jason Harris's avatar Jason Harris

finished reverting accidental commit of INDI (kstars.kdevelop;

kstars/Makefile.am).  Also backported fix from HEAD (single-clicking an
object would change the Focus InfoBox so it showed the wrong object name).

svn path=/branches/kstars_1_0_branch/kdeedu/kstars/; revision=221638
parent 7359c877
......@@ -424,7 +424,9 @@ void SkyMap::slewFocus( void ) {
setFocus( destination() );
focus()->EquatorialToHorizontal( ksw->LSTh(), ksw->geo()->lat() );
ksw->infoBoxes()->focusObjChanged( ksw->options()->focusObject );
if ( foundObject() )
ksw->infoBoxes()->focusObjChanged( foundObject()->translatedName() );
ksw->infoBoxes()->focusCoordChanged( ksw->map()->focus() );
ksw->setHourAngle();
......
......@@ -442,8 +442,11 @@ void SkyMap::mouseReleaseEvent( QMouseEvent * ) {
if (mouseMoveCursor) setDefaultMouseCursor(); // set default cursor
if (mouseButtonDown) { //false if double-clicked, becuase it's unset there.
mouseButtonDown = false;
setDestination( focus() );
slewing = false;
if ( slewing ) {
setDestination( focus() );
slewing = false;
}
setOldFocus( focus() );
Update(); // is needed because after moving the sky not all stars are shown
}
......
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