# HG changeset patch # User PeterN # Date 2022-09-25 15:08:52 # Node ID 10ed060c534b70a8a8fd657dbc48d5ac8a90d464 # Parent 15ac6a0992ff6ed446feb4971030894a14eccc8e Fix: Open scenario editor date query once. (#10050) Clearing `_left_button_clicked` causes the button callback to be fired constantly while the mouse button is held. diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -1152,7 +1152,6 @@ static CallBackFunction ToolbarScenDateP { SetDParam(0, _settings_game.game_creation.starting_year); ShowQueryString(STR_JUST_INT, STR_MAPGEN_START_DATE_QUERY_CAPT, 8, w, CS_NUMERAL, QSF_ENABLE_DEFAULT); - _left_button_clicked = false; return CBF_NONE; }