aboutsummaryrefslogtreecommitdiff
path: root/gui/themebrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/themebrowser.cpp')
-rw-r--r--gui/themebrowser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/themebrowser.cpp b/gui/themebrowser.cpp
index d81d43db6f..8809ed149a 100644
--- a/gui/themebrowser.cpp
+++ b/gui/themebrowser.cpp
@@ -171,7 +171,11 @@ bool ThemeBrowser::isTheme(const FilesystemNode &node, Entry &out) {
return false;
out.type = type;
- out.name = out.file;
+
+ if (cfg.hasKey("name", "theme"))
+ cfg.getKey("name", "theme", out.name);
+ else
+ out.name = out.file;
return true;
}