mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r22553) -Fix (r22499): NewGRF parameter window was not set dirty, when changing row selection.
This commit is contained in:
parent
d5e7537e14
commit
3f003c0977
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue