aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-09-17 17:46:55 +0000
committerJohannes Schickel2008-09-17 17:46:55 +0000
commit7eceb8d423761c1973700513026ce2286e541bb6 (patch)
tree0a99bc9671104c5caf35e026c5c9bd97ff7ef10c
parenta6dd4b7d4d8e3f5f4e63c20334f7f8b0ab9f0bef (diff)
downloadscummvm-rg350-7eceb8d423761c1973700513026ce2286e541bb6.tar.gz
scummvm-rg350-7eceb8d423761c1973700513026ce2286e541bb6.tar.bz2
scummvm-rg350-7eceb8d423761c1973700513026ce2286e541bb6.zip
Fixed bug in SaveLoadChooser reflowLayout, which prevented widgets from being properly hidden.
svn-id: r34590
-rw-r--r--gui/launcher.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index cbe39b5952..a85761b58f 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -514,6 +514,7 @@ public:
SaveLoadChooser::SaveLoadChooser(const String &title, const String &buttonLabel)
: Dialog("scummsaveload"), _delSupport(0), _list(0), _chooseButton(0), _deleteButton(0), _gfxWidget(0) {
+ _delSupport = _metaInfoSupport = _thumbnailSupport = _saveDateSupport = _playTimeSupport = false;
_drawingHints |= GUI::THEME_HINT_SPECIAL_COLOR;
@@ -647,10 +648,15 @@ void SaveLoadChooser::reflowLayout() {
if (_saveDateSupport) {
_date->clearFlags(GUI::WIDGET_INVISIBLE);
_time->clearFlags(GUI::WIDGET_INVISIBLE);
+ } else {
+ _date->setFlags(GUI::WIDGET_INVISIBLE);
+ _time->setFlags(GUI::WIDGET_INVISIBLE);
}
if (_playTimeSupport)
_playtime->clearFlags(GUI::WIDGET_INVISIBLE);
+ else
+ _playtime->setFlags(GUI::WIDGET_INVISIBLE);
_fillR = g_gui.evaluator()->getVar("scummsaveload_thumbnail.fillR");
_fillG = g_gui.evaluator()->getVar("scummsaveload_thumbnail.fillG");