From d78daa8988cfce37f0f7cf7e062fc58d05b1911a Mon Sep 17 00:00:00 2001 From: kleidis <167202775+kleidis@users.noreply.github.com> Date: Sat, 31 Aug 2024 09:20:43 +0200 Subject: [PATCH] main.cpp: Removed unnecessary variable --- src/lime_qt/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lime_qt/main.cpp b/src/lime_qt/main.cpp index c22273a0a..2e77c8157 100644 --- a/src/lime_qt/main.cpp +++ b/src/lime_qt/main.cpp @@ -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/"));