Content of the ProfilePanel and Theme list now sorted alphabetically on Linux too (see issue 853)

This commit is contained in:
Hombre
2013-10-09 00:23:08 +02:00
parent a101e04371
commit 44268074d8
3 changed files with 12 additions and 1 deletions

View File

@@ -1065,6 +1065,7 @@ void Preferences::parseDir (Glib::ustring dirname, std::vector<Glib::ustring>& i
if (!safe_file_test (fname, Glib::FILE_TEST_IS_DIR) && sname.size() >= ext.size() && sname.substr (sname.size()-ext.size(), ext.size()).casefold() == ext)
items.push_back (sname.substr(0,sname.size()-ext.size()));
}
std::sort(items.begin(), items.end());
delete dir;
}