Web UI code optimization

This commit is contained in:
Christophe Dumez
2011-09-29 20:47:51 +03:00
parent 2036326403
commit ae692ba9b8
6 changed files with 22 additions and 8 deletions

View File

@@ -124,7 +124,7 @@ QList<QVariantMap> EventManager::getPropFilesInfo(QString hash) const {
return files;
}
void EventManager::setGlobalPreferences(QVariantMap m) const {
void EventManager::setGlobalPreferences(QVariantMap m) {
// UI
Preferences pref;
if(m.contains("locale")) {
@@ -137,9 +137,10 @@ void EventManager::setGlobalPreferences(QVariantMap m) const {
qDebug("%s locale unrecognized, using default (en_GB).", qPrintable(locale));
}
qApp->installTranslator(translator);
}
pref.setLocale(locale);
pref.setLocale(locale);
emit localeChanged(locale);
}
}
// Downloads
if(m.contains("save_path"))