(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening
authorglx
Mon, 19 May 2008 01:10:52 +0000
changeset 9307 c41caf605aea
parent 9306 7dd0a9130ebf
child 9308 b2c24e2cdb7d
(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening
src/industry_gui.cpp
--- a/src/industry_gui.cpp	Sun May 18 23:36:33 2008 +0000
+++ b/src/industry_gui.cpp	Mon May 19 01:10:52 2008 +0000
@@ -925,6 +925,8 @@
 					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;