Allow generating new default name for station

Ctrl-click default button in rename station query window
This commit is contained in:
Jonathan G Rennison
2023-04-11 18:18:13 +01:00
parent 19a42a879f
commit 07f2984d06
2 changed files with 23 additions and 4 deletions

View File

@@ -2224,7 +2224,7 @@ struct StationViewWindow : public Window {
{
if (str == nullptr) return;
DoCommandP(0, this->window_number, 0, CMD_RENAME_STATION | CMD_MSG(STR_ERROR_CAN_T_RENAME_STATION), nullptr, str);
DoCommandP(0, this->window_number, _ctrl_pressed ? 1 : 0, CMD_RENAME_STATION | CMD_MSG(STR_ERROR_CAN_T_RENAME_STATION), nullptr, str);
}
void OnResize() override