(svn r14785) -Fix [FS#2132]: vehicle list for station gets closed when station view is closed even when the vehicle list is stickied. Other vehicle lists are not deleted when their 'opening' window gets closed so do the same with the station view.

This commit is contained in:
rubidium
2009-01-02 20:59:04 +00:00
parent 80a35db52c
commit d91baac764
7 changed files with 34 additions and 12 deletions

View File

@@ -1817,10 +1817,10 @@ struct VehicleViewWindow : Window {
~VehicleViewWindow()
{
DeleteWindowById(WC_VEHICLE_ORDERS, this->window_number);
DeleteWindowById(WC_VEHICLE_REFIT, this->window_number);
DeleteWindowById(WC_VEHICLE_DETAILS, this->window_number);
DeleteWindowById(WC_VEHICLE_TIMETABLE, this->window_number);
DeleteWindowById(WC_VEHICLE_ORDERS, this->window_number, false);
DeleteWindowById(WC_VEHICLE_REFIT, this->window_number, false);
DeleteWindowById(WC_VEHICLE_DETAILS, this->window_number, false);
DeleteWindowById(WC_VEHICLE_TIMETABLE, this->window_number, false);
}
virtual void OnPaint()