(svn r22553) -Fix (r22499): NewGRF parameter window was not set dirty, when changing row selection.

pull/155/head
frosch 13 years ago
parent a0eb879310
commit 4ea00f2390

@ -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…
Cancel
Save