diff options
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(); |