SolarSystemEditor.cpp   SolarSystemEditor.cpp 
skipping to change at line 115 skipping to change at line 115
return; return;
mainWindow = new SolarSystemManagerWindow(); mainWindow = new SolarSystemManagerWindow();
} }
catch (std::runtime_error &e) catch (std::runtime_error &e)
{ {
qWarning() << "init() error: " << e.what(); qWarning() << "init() error: " << e.what();
return; return;
} }
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(updateI18n()));
isInitialized = true; isInitialized = true;
} }
void SolarSystemEditor::deinit() void SolarSystemEditor::deinit()
{ {
// //
} }
void SolarSystemEditor::update(double) //deltaTime void SolarSystemEditor::update(double) //deltaTime
{ {
skipping to change at line 190 skipping to change at line 191
} }
} }
return true; return true;
} }
void SolarSystemEditor::updateI18n() void SolarSystemEditor::updateI18n()
{ {
//The Solar System MUST be translated before updating the window //The Solar System MUST be translated before updating the window
//TODO: Remove this if/when you merge this module in the Solar Syste m module //TODO: Remove this if/when you merge this module in the Solar Syste m module
solarSystemManager->updateI18n(); solarSystemManager->updateI18n();
if (mainWindow)
{
mainWindow->languageChanged();
}
} }
bool SolarSystemEditor::cloneSolarSystemConfigurationFile() bool SolarSystemEditor::cloneSolarSystemConfigurationFile()
{ {
QDir userDataDirectory(StelFileMgr::getUserDir()); QDir userDataDirectory(StelFileMgr::getUserDir());
if (!userDataDirectory.exists()) if (!userDataDirectory.exists())
{ {
qDebug() << "Unable to find user data directory:" << userDat aDirectory.absolutePath(); qDebug() << "Unable to find user data directory:" << userDat aDirectory.absolutePath();
return false; return false;
} }
 End of changes. 2 change blocks. 
5 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/