From 6669aa55f79d44cc8f7fbf50ecf95fcc819c7e11 Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Mon, 15 Jul 2024 20:17:58 +0100 Subject: [PATCH] [Gui] Apply requested changes --- src/Gui/PreferencePages/DlgSettingsGeneral.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Gui/PreferencePages/DlgSettingsGeneral.cpp b/src/Gui/PreferencePages/DlgSettingsGeneral.cpp index 4980894b63..2d2830e60a 100644 --- a/src/Gui/PreferencePages/DlgSettingsGeneral.cpp +++ b/src/Gui/PreferencePages/DlgSettingsGeneral.cpp @@ -329,8 +329,9 @@ void DlgSettingsGeneral::loadSettings() } QAbstractItemModel* model = ui->Languages->model(); - if (model) + if (model) { model->sort(0); + } addIconSizes(getCurrentIconSize()); @@ -435,7 +436,7 @@ void DlgSettingsGeneral::loadThemes() QString currentStyleSheet = QString::fromLatin1(hGrp->GetASCII("StyleSheet", "").c_str()); QFileInfo fi(currentStyleSheet); currentStyleSheet = fi.baseName(); - QString themeClassic = QString::fromStdString("classic"); // handle the upcoming name change + QString themeClassic = QStringLiteral("classic"); // handle the upcoming name change QString similarTheme; QString packName; for (const auto& pack : packs) {