GUI: Prevent the GUI code from incorrectly reloading the theme when the builtin theme is used.

This commit is contained in:
agent-q 2011-05-21 15:55:36 +01:00
parent 3ce4b76b0d
commit f1903004c0

View File

@ -141,8 +141,8 @@ void OptionsDialog::init() {
_subSpeedDesc = 0; _subSpeedDesc = 0;
_subSpeedSlider = 0; _subSpeedSlider = 0;
_subSpeedLabel = 0; _subSpeedLabel = 0;
_oldTheme = ConfMan.get("gui_theme"); _oldTheme = g_gui.theme()->getThemeId();
// Retrieve game GUI options // Retrieve game GUI options
_guioptions = 0; _guioptions = 0;
if (ConfMan.hasKey("guioptions", _domain)) { if (ConfMan.hasKey("guioptions", _domain)) {