diff options
Diffstat (limited to 'gui/ThemeEval.h')
-rw-r--r-- | gui/ThemeEval.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/ThemeEval.h b/gui/ThemeEval.h index aaab4cb2bf..e0c1c5af59 100644 --- a/gui/ThemeEval.h +++ b/gui/ThemeEval.h @@ -336,7 +336,7 @@ public: bool hasVar(const Common::String &name) { return _vars.contains(name) || _builtin.contains(name); } - void addDialog(const Common::String &name, const Common::String &overlays, bool enabled = true); + void addDialog(const Common::String &name, const Common::String &overlays, bool enabled = true, int inset = 0); void addLayout(ThemeLayout::LayoutType type, int spacing, bool reverse, bool center = false); void addWidget(const Common::String &name, int w, int h, const Common::String &type, bool enabled = true); bool addImportedLayout(const Common::String &name); @@ -383,12 +383,13 @@ public: void reset() { _vars.clear(); - _builtin.clear(); _curDialog.clear(); _curLayout.clear(); for (LayoutsMap::iterator i = _layouts.begin(); i != _layouts.end(); ++i) delete i->_value; + + _layouts.clear(); } private: |