diff options
| author | Johannes Schickel | 2007-04-29 00:18:54 +0000 |
|---|---|---|
| committer | Johannes Schickel | 2007-04-29 00:18:54 +0000 |
| commit | 7143d08e71f85f11df43842544bbb3b4c6a5fbbc (patch) | |
| tree | 21c788a99f27258e93f53e30e079d20d24ee9b3c /gui | |
| parent | e0b462b33b9080b46d354d525ef54da4c186bf1e (diff) | |
| download | scummvm-rg350-7143d08e71f85f11df43842544bbb3b4c6a5fbbc.tar.gz scummvm-rg350-7143d08e71f85f11df43842544bbb3b4c6a5fbbc.tar.bz2 scummvm-rg350-7143d08e71f85f11df43842544bbb3b4c6a5fbbc.zip | |
Little improvement for theme config validity check.
svn-id: r26671
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/theme.cpp | 3 |
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()) |
