mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-10-30 03:37:52 +00:00
main.cpp: Removed unnecessary variable
This commit is contained in:
parent
2036a5666e
commit
d78daa8988
1 changed files with 2 additions and 3 deletions
|
@ -3415,9 +3415,8 @@ void GMainWindow::LoadTranslation() {
|
|||
bool loaded;
|
||||
|
||||
if (UISettings::values.language.isEmpty()) {
|
||||
// Use the system's default locale
|
||||
QLocale defaultLocale = QLocale::system();
|
||||
loaded = translator.load(defaultLocale, {}, {}, QStringLiteral(":/languages/"));
|
||||
// Use the system's default locale
|
||||
loaded = translator.load(QLocale::system(), {}, {}, QStringLiteral(":/languages/"));
|
||||
} else {
|
||||
// Otherwise load from the specified file
|
||||
loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/"));
|
||||
|
|
Loading…
Reference in a new issue