From fa72187bbf5dbb990305abf9b068dafb9353f11b Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 19 May 2008 01:10:52 +0000 Subject: (svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening --- src/industry_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 70b8e4fb2..1d8a264d3 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -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; -- cgit v1.2.3-70-g09d2