mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-01 11:39:26 +00:00
Really fix config file migration not being done.
This commit is contained in:
parent
6d52bb0468
commit
8dbb3217e3
1 changed files with 6 additions and 3 deletions
|
|
@ -448,12 +448,15 @@ void App::createNotifier () {
|
|||
|
||||
void App::initLocale () {
|
||||
// Try to use preferred locale.
|
||||
QString locale = ::Utils::coreStringToAppString(
|
||||
linphone::Config::newWithFactory(
|
||||
Paths::getConfigFilePath(mParser->value("config"), false), "")->getString(
|
||||
QString locale;
|
||||
string configPath = Paths::getConfigFilePath(mParser->value("config"), false);
|
||||
if (Paths::filePathExists(configPath)) {
|
||||
locale = ::Utils::coreStringToAppString(
|
||||
linphone::Config::newWithFactory(configPath, "")->getString(
|
||||
SettingsModel::UI_SECTION, "locale", ""
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if (!locale.isEmpty() && installLocale(*this, *mTranslator, QLocale(locale))) {
|
||||
mLocale = locale;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue