Change window close/deallocation to match upstream

This commit is contained in:
Jonathan G Rennison
2023-09-15 23:56:33 +01:00
parent 79cfc3e8bd
commit f5d1b1d8f8
50 changed files with 352 additions and 341 deletions

View File

@@ -155,7 +155,7 @@ struct SetDateWindow : Window {
if (this->callback != nullptr) {
this->callback(this, DateToScaledDateTicks(ConvertYMDToDate(this->date.year, this->date.month, this->date.day)));
}
delete this;
this->Close();
break;
}
}
@@ -271,7 +271,7 @@ struct SetMinutesWindow : SetDateWindow
if (this->callback != nullptr) {
this->callback(this, ((DateTicks)minutes - _settings_time.clock_offset) * (DateTicksScaled)_settings_time.ticks_per_minute);
}
delete this;
this->Close();
break;
}
}