(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening

pull/155/head
glx 17 years ago
parent dc1c529a31
commit 4e11e0785a

@ -925,6 +925,8 @@ struct IndustryDirectoryWindow : public Window, public GUIIndustryList {
this->sort_type = widget - IDW_SORTBYNAME;
this->flags &= ~VL_DESC;
}
industry_sort.criteria = this->sort_type;
industry_sort.order = HasBit(this->flags, 0);
this->flags |= VL_RESORT;
this->SetDirty();
break;

Loading…
Cancel
Save