Commit 8dbb3217 authored by Ghislain MARY's avatar Ghislain MARY

Really fix config file migration not being done.

parent 6d52bb04
...@@ -448,12 +448,15 @@ void App::createNotifier () { ...@@ -448,12 +448,15 @@ void App::createNotifier () {
void App::initLocale () { void App::initLocale () {
// Try to use preferred locale. // Try to use preferred locale.
QString locale = ::Utils::coreStringToAppString( QString locale;
linphone::Config::newWithFactory( string configPath = Paths::getConfigFilePath(mParser->value("config"), false);
Paths::getConfigFilePath(mParser->value("config"), false), "")->getString( if (Paths::filePathExists(configPath)) {
locale = ::Utils::coreStringToAppString(
linphone::Config::newWithFactory(configPath, "")->getString(
SettingsModel::UI_SECTION, "locale", "" SettingsModel::UI_SECTION, "locale", ""
) )
); );
}
if (!locale.isEmpty() && installLocale(*this, *mTranslator, QLocale(locale))) { if (!locale.isEmpty() && installLocale(*this, *mTranslator, QLocale(locale))) {
mLocale = locale; mLocale = locale;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment