From fb10326caedf65ae6d4e9fb246bcb6486bda868f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Sep 2017 00:04:29 +0300 Subject: Add sorting in theme and fonts and sounds lists. --- src/gui/theme.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/theme.cpp') diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 503c3c86a..cbc0d654c 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -563,12 +563,14 @@ bool Theme::tryThemePath(const std::string &themeName) void Theme::fillSkinsList(StringVect &list) { VirtFs::getDirs(branding.getStringValue("guiThemePath"), list); + std::sort(list.begin(), list.end()); } void Theme::fillFontsList(StringVect &list) { VirtFs::permitLinks(true); VirtFs::getFiles(branding.getStringValue("fontsPath"), list); + std::sort(list.begin(), list.end()); VirtFs::permitLinks(false); } @@ -589,6 +591,7 @@ void Theme::fillSoundsList(StringVect &list) } VirtFs::freeList(skins); + std::sort(list.begin(), list.end()); } void Theme::selectSkin() -- cgit v1.2.3-70-g09d2