aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2007-06-10 14:23:26 +0000
committerMax Horn2007-06-10 14:23:26 +0000
commit3c359449ad865fbc81bb232c678bbbd84b171b92 (patch)
treea9431e009409a666fb1294c0f38d4ca0b6cca6d4 /gui
parent85893e457d53aac998a4e83ab651952d954a6d7a (diff)
downloadscummvm-rg350-3c359449ad865fbc81bb232c678bbbd84b171b92.tar.gz
scummvm-rg350-3c359449ad865fbc81bb232c678bbbd84b171b92.tar.bz2
scummvm-rg350-3c359449ad865fbc81bb232c678bbbd84b171b92.zip
Oops, fix crash when opening globals options dialog
svn-id: r27312
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp5
-rw-r--r--gui/options.cpp15
2 files changed, 19 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 9e6163ca72..39d0fe2560 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -302,6 +302,11 @@ void EditGameDialog::reflowLayout() {
OptionsDialog::reflowLayout();
+ // FIXME/HACK to workaround bug #1677997, part #2
+ {
+ loadConfigToWidgets();
+ }
+
int labelWidth = g_gui.evaluator()->getVar("gameOptionsLabelWidth");
if (_langPopUp)
diff --git a/gui/options.cpp b/gui/options.cpp
index 1ca6b266a6..9e461d1f9b 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -666,6 +666,15 @@ void OptionsDialog::reflowLayout() {
GlobalOptionsDialog::GlobalOptionsDialog()
: OptionsDialog(Common::ConfigManager::kApplicationDomain, "globaloptions") {
+
+#ifdef SMALL_SCREEN_DEVICE
+ _keysDialog = 0;
+#endif
+ _savePath = 0;
+ _themePath = 0;
+ _extraPath = 0;
+ _curTheme = 0;
+ _autosavePeriodPopUp = 0;
// FIXME: Disable the setupWidgets() call here for now. See reflowLayout()
// for details.
@@ -779,10 +788,14 @@ void GlobalOptionsDialog::reflowLayout() {
_focusedWidget = 0;
_dragWidget = 0;
setupWidgets();
- loadConfigToWidgets();
}
OptionsDialog::reflowLayout();
+
+ // FIXME/HACK to workaround bug #1677997, part #2
+ {
+ loadConfigToWidgets();
+ }
}
void GlobalOptionsDialog::loadConfigToWidgets() {