diff options
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/Theme.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FbTk/Theme.cc b/src/FbTk/Theme.cc index c252275..a62c8a6 100644 --- a/src/FbTk/Theme.cc +++ b/src/FbTk/Theme.cc | |||
@@ -115,12 +115,13 @@ bool ThemeManager::unregisterTheme(Theme &tm) { | |||
115 | 115 | ||
116 | bool ThemeManager::load(const string &filename, | 116 | bool ThemeManager::load(const string &filename, |
117 | const string &overlay_filename, int screen_num) { | 117 | const string &overlay_filename, int screen_num) { |
118 | |||
118 | string location = FbTk::StringUtil::expandFilename(filename); | 119 | string location = FbTk::StringUtil::expandFilename(filename); |
119 | StringUtil::removeTrailingWhitespace(location); | 120 | StringUtil::removeTrailingWhitespace(location); |
120 | StringUtil::removeFirstWhitespace(location); | 121 | StringUtil::removeFirstWhitespace(location); |
121 | string prefix = ""; | 122 | string prefix = ""; |
122 | 123 | ||
123 | if (FileUtil::isDirectory(filename.c_str())) { | 124 | if (FileUtil::isDirectory(location.c_str())) { |
124 | prefix = location; | 125 | prefix = location; |
125 | 126 | ||
126 | location.append("/theme.cfg"); | 127 | location.append("/theme.cfg"); |