Make the sort order toggle button resort a vehicle list

This commit is contained in:
Andreas Schmitt
2021-06-23 06:54:42 +02:00
committed by Jonathan G Rennison
parent dd0a1ca6c0
commit 0f07ae839d
2 changed files with 2 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;