summaryrefslogtreecommitdiff
path: root/src/date_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/date_gui.cpp')
-rw-r--r--src/date_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date_gui.cpp b/src/date_gui.cpp
index 77b9a7c4c..932728720 100644
--- a/src/date_gui.cpp
+++ b/src/date_gui.cpp
@@ -212,6 +212,6 @@ static WindowDesc _set_date_desc(
*/
void ShowSetDateWindow(Window *parent, int window_number, Date initial_date, Year min_year, Year max_year, SetDateCallback *callback)
{
- DeleteWindowByClass(WC_SET_DATE);
+ CloseWindowByClass(WC_SET_DATE);
new SetDateWindow(&_set_date_desc, window_number, parent, initial_date, min_year, max_year, callback);
}