mirror of https://github.com/OpenTTD/OpenTTD
(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening
parent
17a1873843
commit
fa72187bbf
|
@ -925,6 +925,8 @@ struct IndustryDirectoryWindow : public Window, public GUIIndustryList {
|
||||||
this->sort_type = widget - IDW_SORTBYNAME;
|
this->sort_type = widget - IDW_SORTBYNAME;
|
||||||
this->flags &= ~VL_DESC;
|
this->flags &= ~VL_DESC;
|
||||||
}
|
}
|
||||||
|
industry_sort.criteria = this->sort_type;
|
||||||
|
industry_sort.order = HasBit(this->flags, 0);
|
||||||
this->flags |= VL_RESORT;
|
this->flags |= VL_RESORT;
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue