summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-28 20:31:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-28 20:31:09 +0300
commitbb87f2911b63eaf80e49d689bf52ecf2042ae098 (patch)
tree0778087134ec3c5a2370d417bcadb64a1dc6a9bc /src/gui/theme.cpp
parent4415cb66734e67dfcdf8924d354107d27fb70fee (diff)
downloadplus-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.gz
plus-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.bz2
plus-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.xz
plus-bb87f2911b63eaf80e49d689bf52ecf2042ae098.zip
Move from resourcemanager functions related to files into other files.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 4708a48d0..1d2c1d2b2 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -52,14 +52,18 @@ Theme *theme = nullptr;
// Set the theme path...
static void initDefaultThemePath()
{
- const ResourceManager *const resman = ResourceManager::getInstance();
defaultThemePath = branding.getStringValue("guiThemePath");
logger->log("defaultThemePath: " + defaultThemePath);
- if (!defaultThemePath.empty() && resman->isDirectory(defaultThemePath))
+ if (!defaultThemePath.empty() && PhysFs::isDirectory(
+ defaultThemePath.c_str()))
+ {
return;
+ }
else
+ {
defaultThemePath = "themes/";
+ }
}
Theme::Theme() :