From ecd21a62f266989f6b5f859a167b834af279d031 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Nov 2024 13:03:24 +0300 Subject: QuickSearch: fix for reading garbage flags from database --- plugins/QuickSearch/src/utils.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins') 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); -- cgit v1.2.3