mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-01-08 08:00:39 +01:00
main.cpp: Removed unnecessary variable
This commit is contained in:
parent
2036a5666e
commit
d78daa8988
@ -3415,9 +3415,8 @@ void GMainWindow::LoadTranslation() {
|
|||||||
bool loaded;
|
bool loaded;
|
||||||
|
|
||||||
if (UISettings::values.language.isEmpty()) {
|
if (UISettings::values.language.isEmpty()) {
|
||||||
// Use the system's default locale
|
// Use the system's default locale
|
||||||
QLocale defaultLocale = QLocale::system();
|
loaded = translator.load(QLocale::system(), {}, {}, QStringLiteral(":/languages/"));
|
||||||
loaded = translator.load(defaultLocale, {}, {}, QStringLiteral(":/languages/"));
|
|
||||||
} else {
|
} else {
|
||||||
// Otherwise load from the specified file
|
// Otherwise load from the specified file
|
||||||
loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/"));
|
loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/"));
|
||||||
|
Loading…
Reference in New Issue
Block a user