summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/theme.cpp')
-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()