Fix f6d5c01
: Delay deletion when closing windows
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user