aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2007-04-29 00:18:54 +0000
committerJohannes Schickel2007-04-29 00:18:54 +0000
commit7143d08e71f85f11df43842544bbb3b4c6a5fbbc (patch)
tree21c788a99f27258e93f53e30e079d20d24ee9b3c
parente0b462b33b9080b46d354d525ef54da4c186bf1e (diff)
downloadscummvm-rg350-7143d08e71f85f11df43842544bbb3b4c6a5fbbc.tar.gz
scummvm-rg350-7143d08e71f85f11df43842544bbb3b4c6a5fbbc.tar.bz2
scummvm-rg350-7143d08e71f85f11df43842544bbb3b4c6a5fbbc.zip
Little improvement for theme config validity check.
svn-id: r26671
-rw-r--r--gui/theme.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/theme.cpp b/gui/theme.cpp
index a3f0cee510..446f746cf3 100644
--- a/gui/theme.cpp
+++ b/gui/theme.cpp
@@ -243,7 +243,8 @@ bool Theme::themeConfigUseable(const Common::String &stylefile, const Common::St
}
Common::String temp;
- cfg->getKey("type", "theme", temp);
+ if (!cfg->getKey("type", "theme", temp))
+ return false;
if (cStyle)
*cStyle = temp;
if (0 != temp.compareToIgnoreCase(style) && !style.empty())