Make the sort order toggle button resort a vehicle list
This commit is contained in:

committed by
Jonathan G Rennison

parent
dd0a1ca6c0
commit
0f07ae839d
@@ -722,6 +722,7 @@ public:
|
|||||||
switch (widget) {
|
switch (widget) {
|
||||||
case WID_GL_SORT_BY_ORDER: // Flip sorting method ascending/descending
|
case WID_GL_SORT_BY_ORDER: // Flip sorting method ascending/descending
|
||||||
this->vehgroups.ToggleSortOrder();
|
this->vehgroups.ToggleSortOrder();
|
||||||
|
this->vehgroups.ForceResort();
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@@ -2232,6 +2232,7 @@ public:
|
|||||||
switch (widget) {
|
switch (widget) {
|
||||||
case WID_VL_SORT_ORDER: // Flip sorting method ascending/descending
|
case WID_VL_SORT_ORDER: // Flip sorting method ascending/descending
|
||||||
this->vehgroups.ToggleSortOrder();
|
this->vehgroups.ToggleSortOrder();
|
||||||
|
this->vehgroups.ForceResort();
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user