summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-03 00:04:29 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-03 00:04:48 +0300
commitfb10326caedf65ae6d4e9fb246bcb6486bda868f (patch)
tree670f0e11e8e93700ba2b85ea3674e71aaf2225a9 /src
parent98c574a6a0aab26792ef336b8da9fb5cc3a69f86 (diff)
downloadmv-fb10326caedf65ae6d4e9fb246bcb6486bda868f.tar.gz
mv-fb10326caedf65ae6d4e9fb246bcb6486bda868f.tar.bz2
mv-fb10326caedf65ae6d4e9fb246bcb6486bda868f.tar.xz
mv-fb10326caedf65ae6d4e9fb246bcb6486bda868f.zip
Add sorting in theme and fonts and sounds lists.
Diffstat (limited to 'src')
-rw-r--r--src/gui/theme.cpp3
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()