summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-15 15:31:09 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-16 00:03:40 +0200
commiteda1973442f61e7c85eba31bec8e271c07b24095 (patch)
tree0c0a7c3962b6ce24b69772b6c440a4d89ffcf20b
parent7f840a7bfd4d89c2f31464922beee9331de81a08 (diff)
compat/options: ensure all ini names sorted
-rw-r--r--compat/options.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/compat/options.cpp b/compat/options.cpp
index 9ff696ac..db2e5ce5 100644
--- a/compat/options.cpp
+++ b/compat/options.cpp
@@ -65,7 +65,9 @@ const QStringList group::ini_list()
if (dirname == "")
return QStringList();
QDir settings_dir(dirname);
- return settings_dir.entryList( QStringList { "*.ini" } , QDir::Files, QDir::Name );
+ QStringList list = settings_dir.entryList( QStringList { "*.ini" } , QDir::Files, QDir::Name );
+ std::sort(list.begin(), list.end());
+ return list;
}
const mem<QSettings> group::ini_file()