Town directory window: Only resort on population change if necessary

This commit is contained in:
Jonathan G Rennison
2020-01-06 20:19:50 +00:00
parent 68fa46d351
commit b868ce8605
3 changed files with 7 additions and 1 deletions

View File

@@ -1001,6 +1001,11 @@ public:
this->vscroll->SetCount((int)this->towns.size()); // Update scrollbar as well.
}
break;
case TDIWD_POPULATION_CHANGE:
if (this->towns.SortType() == 1) this->towns.ForceResort();
break;
default:
this->towns.ForceResort();
}