diff options
Diffstat (limited to 'plugins/QuickSearch/src/utils.cpp')
-rw-r--r-- | plugins/QuickSearch/src/utils.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/QuickSearch/src/utils.cpp b/plugins/QuickSearch/src/utils.cpp index eb450e9db1..29fb4a4c2e 100644 --- a/plugins/QuickSearch/src/utils.cpp +++ b/plugins/QuickSearch/src/utils.cpp @@ -310,9 +310,14 @@ void CMPlugin::LoadColumn(int n, ColumnItem &col) strcpy(buf + offset, so_title); col.title = getWStringA(buf);
strcpy(buf + offset, so_setting_type); col.setting_type = getWord(buf);
- strcpy(buf + offset, so_flags); col.dwFlags = getWord(buf);
strcpy(buf + offset, so_width); col.width = getWord(buf);
+ strcpy(buf + offset, so_flags);
+ uint16_t wFlags = getWord(buf);
+ col.bEnabled = (wFlags & 1) != 0;
+ col.bFilter = (wFlags & 4) != 0;
+ col.SetSpecialColumns();
+
switch (col.setting_type) {
case QST_SETTING:
strcpy(buf + offset, so_datatype); col.datatype = getWord(buf);
|