SearchDialog.cpp   SearchDialog.cpp 
skipping to change at line 425 skipping to change at line 425
} }
else if (objectMgr->findAndSelectI18n(name)) else if (objectMgr->findAndSelectI18n(name))
{ {
const QList<StelObjectP> newSelected = objectMgr->getSelecte dObject(); const QList<StelObjectP> newSelected = objectMgr->getSelecte dObject();
if (!newSelected.empty()) if (!newSelected.empty())
{ {
close(); close();
ui->lineEditSearchSkyObject->clear(); ui->lineEditSearchSkyObject->clear();
ui->completionLabel->clearValues(); ui->completionLabel->clearValues();
// Can't point to home planet // Can't point to home planet
if (newSelected[0]->getEnglishName()!=StelApp::getIn stance().getCore()->getCurrentLocation().name) if (newSelected[0]->getEnglishName()!=StelApp::getIn stance().getCore()->getCurrentLocation().planetName)
{ {
mvmgr->moveToObject(newSelected[0], mvmgr->g etAutoMoveDuration()); mvmgr->moveToObject(newSelected[0], mvmgr->g etAutoMoveDuration());
mvmgr->setFlagTracking(true); mvmgr->setFlagTracking(true);
} }
else else
{ {
GETSTELMODULE(StelObjectMgr)->unSelect(); GETSTELMODULE(StelObjectMgr)->unSelect();
} }
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 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/