diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-13 03:35:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-13 03:35:17 +0300 |
commit | 89e240d5182e4cdafd942f9eeb1fac1b95111bb8 (patch) | |
tree | 1c5deaa1d06f85fefdf1359f90393b5e95f2b568 /src/gui/theme.cpp | |
parent | f2752fdec3661a7ffaf592747c2c65f56662a384 (diff) | |
download | plus-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.tar.gz plus-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.tar.bz2 plus-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.tar.xz plus-89e240d5182e4cdafd942f9eeb1fac1b95111bb8.zip |
Dont report errors on resolving theme image path.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r-- | src/gui/theme.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index f36a45579..516fb6402 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -387,9 +387,10 @@ Skin *Theme::readSkin(const std::string &filename, const bool full) if (filename.empty()) return nullptr; -// logger->log("Loading skin '%s'.", filename.c_str()); - - XML::Document doc(resolveThemePath(filename), + const std::string path = resolveThemePath(filename); + if (!PhysFs::exists(path.c_str())) + return nullptr; + XML::Document doc(path, UseResman_true, SkipError_true); const XmlNodePtr rootNode = doc.rootNode(); |