diff --git a/src/settings/settings.cpp b/src/settings/settings.cpp index 9d08987..e463651 100644 --- a/src/settings/settings.cpp +++ b/src/settings/settings.cpp @@ -157,8 +157,13 @@ void GlobalSetting::initGlobalSettings() //= settings.beginGroup("Default Favorite Apps"); + QMap apps; for (const auto &key : settings.allKeys()) { - m_defaultFavoriteApps.append(settings.value(key).toString()); + apps.insert(key.toInt(), settings.value(key).toString()); + } + + for (const auto &app : apps) { + m_defaultFavoriteApps.append(app); } settings.endGroup(); }