From 3f003c097730e8883d5db88cf30aff968c143f68 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 11 Jun 2011 21:12:28 +0000 Subject: (svn r22553) -Fix (r22499): NewGRF parameter window was not set dirty, when changing row selection. --- src/ai/ai_gui.cpp | 3 +-- src/newgrf_gui.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 08d332ebf..6426dd3c7 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -411,8 +411,6 @@ struct AISettingsWindow : public Window { this->timeout = 5; this->CheckDifficultyLevel(); - - this->SetDirty(); } } else if (!bool_item) { /* Display a query box so users can enter a custom value. */ @@ -420,6 +418,7 @@ struct AISettingsWindow : public Window { SetDParam(0, this->ai_config->GetSetting(config_item.name)); ShowQueryString(STR_JUST_INT, STR_CONFIG_SETTING_QUERY_CAPTION, 10, this, CS_NUMERAL, QSF_NONE); } + this->SetDirty(); break; } diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index cc8413408..f91ef192e 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -344,13 +344,13 @@ struct NewGRFParametersWindow : public Window { this->clicked_button = num; this->timeout = 5; - this->SetDirty(); } } else if (par_info->type == PTYPE_UINT_ENUM && click_count >= 2) { /* Display a query box so users can enter a custom value. */ SetDParam(0, this->grf_config->param[num]); ShowQueryString(STR_JUST_INT, STR_CONFIG_SETTING_QUERY_CAPTION, 10, this, CS_NUMERAL, QSF_NONE); } + this->SetDirty(); break; } -- cgit v1.2.3-70-g09d2