diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-03 00:04:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-03 00:04:48 +0300 |
commit | fb10326caedf65ae6d4e9fb246bcb6486bda868f (patch) | |
tree | 670f0e11e8e93700ba2b85ea3674e71aaf2225a9 | |
parent | 98c574a6a0aab26792ef336b8da9fb5cc3a69f86 (diff) | |
download | manaverse-fb10326caedf65ae6d4e9fb246bcb6486bda868f.tar.gz manaverse-fb10326caedf65ae6d4e9fb246bcb6486bda868f.tar.bz2 manaverse-fb10326caedf65ae6d4e9fb246bcb6486bda868f.tar.xz manaverse-fb10326caedf65ae6d4e9fb246bcb6486bda868f.zip |
Add sorting in theme and fonts and sounds lists.
-rw-r--r-- | src/gui/theme.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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() |