aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/sqlitestudio/main.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2015-02-22 14:06:29 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2015-02-22 14:06:29 -0500
commit306d6d3ca9c9ad774d19135681a7f9805f77035f (patch)
treea3e36ac2cc769162c30a1bcc33e126f7a4f4ccea /SQLiteStudio3/sqlitestudio/main.cpp
parent016003905ca0e8e459e3dc33e786beda8ec92f45 (diff)
Imported Upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'SQLiteStudio3/sqlitestudio/main.cpp')
-rw-r--r--SQLiteStudio3/sqlitestudio/main.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/SQLiteStudio3/sqlitestudio/main.cpp b/SQLiteStudio3/sqlitestudio/main.cpp
index a5f297b..f2284a6 100644
--- a/SQLiteStudio3/sqlitestudio/main.cpp
+++ b/SQLiteStudio3/sqlitestudio/main.cpp
@@ -133,21 +133,25 @@ int main(int argc, char *argv[])
IconManager::getInstance()->rescanResources();
- if (!CFG_UI.General.LanguageAsked.get())
+ if (!LanguageDialog::didAskForDefaultLanguage())
{
- CFG_UI.General.LanguageAsked.set(true);
+ LanguageDialog::askedForDefaultLanguage();
QMap<QString, QString> langs = getAvailableLanguages();
LanguageDialog dialog;
dialog.setLanguages(langs);
- dialog.setSelectedLang(CFG_CORE.General.Language.getDefultValue().toString());
+ dialog.setSelectedLang(getConfigLanguageDefault());
if (dialog.exec() == QDialog::Accepted)
- CFG_CORE.General.Language.set(dialog.getSelectedLang());
+ setDefaultLanguage(dialog.getSelectedLang());
QProcess::startDetached(a.applicationFilePath(), QStringList());
return 0;
}
+ // Shortcuts titles needs to be retranslated, because their titles were set initially in global scope,
+ // while translation files were not loaded yet. Now they are.
+ ExtActionContainer::refreshShortcutTranslations();
+
MainWindow::getInstance()->restoreSession();
MainWindow::getInstance()->show();