StelMovementMgr.cpp   StelMovementMgr.cpp 
skipping to change at line 1171 skipping to change at line 1171
{ {
moveToJ2000(core->altAzToJ2000(getInitViewingDirection(), St elCore::RefractionOff), mountFrameToJ2000(initViewUp), moveDuration, ZoomOu t); moveToJ2000(core->altAzToJ2000(getInitViewingDirection(), St elCore::RefractionOff), mountFrameToJ2000(initViewUp), moveDuration, ZoomOu t);
setFlagTracking(false); setFlagTracking(false);
setFlagLockEquPos(false); setFlagLockEquPos(false);
} }
} }
// This is called when you press SPACEBAR: slowly centering&tracking object // This is called when you press SPACEBAR: slowly centering&tracking object
void StelMovementMgr::setFlagTracking(bool b) void StelMovementMgr::setFlagTracking(bool b)
{ {
if (!b || !objectMgr->getWasSelected()) if (b && flagTracking)
{
flagTracking=false;
// objectMgr->unSelect();
emit flagTrackingChanged(!b);
}
else if (!b || !objectMgr->getWasSelected())
{ {
if(b!=flagTracking) if(b!=flagTracking)
{ {
flagTracking=false; flagTracking=false;
emit flagTrackingChanged(b); emit flagTrackingChanged(b);
} }
} }
else else
{ {
moveToObject(objectMgr->getSelectedObject()[0], getAutoMoveD uration()); moveToObject(objectMgr->getSelectedObject()[0], getAutoMoveD uration());
 End of changes. 1 change blocks. 
1 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/