Codechange: Use window parent association for dropdowns.
This replaces the separate window class and number properties, and allows the window system to close dropdowns automatically.
This commit is contained in:
@@ -854,7 +854,6 @@ public:
|
||||
if (this->selected_order == -1) break;
|
||||
|
||||
this->CloseChildWindows();
|
||||
HideDropDownMenu(this);
|
||||
this->selected_order = -1;
|
||||
break;
|
||||
|
||||
@@ -886,7 +885,6 @@ public:
|
||||
if (to == INVALID_VEH_ORDER_ID) {
|
||||
/* Deleting selected order */
|
||||
this->CloseChildWindows();
|
||||
HideDropDownMenu(this);
|
||||
this->selected_order = -1;
|
||||
break;
|
||||
}
|
||||
@@ -1186,7 +1184,6 @@ public:
|
||||
|
||||
/* This order won't be selected any more, close all child windows and dropdowns */
|
||||
this->CloseChildWindows();
|
||||
HideDropDownMenu(this);
|
||||
|
||||
if (sel == INVALID_VEH_ORDER_ID || this->vehicle->owner != _local_company) {
|
||||
/* Deselect clicked order */
|
||||
|
Reference in New Issue
Block a user