Update to 12.0-beta1
This commit is contained in:
@@ -147,7 +147,7 @@ struct SetDateWindow : Window {
|
||||
|
||||
case WID_SD_SET_DATE:
|
||||
if (this->callback != nullptr) this->callback(this, ConvertYMDToDate(this->date.year, this->date.month, this->date.day));
|
||||
delete this;
|
||||
this->Close();
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user