summaryrefslogtreecommitdiff
path: root/plugins/QuickSearch/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/QuickSearch/src')
-rw-r--r--plugins/QuickSearch/src/main.cpp2
-rw-r--r--plugins/QuickSearch/src/window.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/QuickSearch/src/main.cpp b/plugins/QuickSearch/src/main.cpp
index 4d20890483..ac398942a0 100644
--- a/plugins/QuickSearch/src/main.cpp
+++ b/plugins/QuickSearch/src/main.cpp
@@ -143,7 +143,7 @@ static sttColors[color_max] = {
static int OnColorReload(WPARAM, LPARAM)
{
for (int i = 0; i < color_max; i++)
- g_plugin.m_colors[i] = Colour_Get(MODULENAME, sttColors[i].szSetting);
+ g_plugin.m_colors[i] = Colour_Get(MODULENAME, sttColors[i].szDescr);
return 0;
}
diff --git a/plugins/QuickSearch/src/window.cpp b/plugins/QuickSearch/src/window.cpp
index 5ee73703aa..670a72b03c 100644
--- a/plugins/QuickSearch/src/window.cpp
+++ b/plugins/QuickSearch/src/window.cpp
@@ -417,13 +417,13 @@ bool QSMainDlg::OnInitDialog()
SetWindowPos(m_hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
}
- CheckDlgButton(m_hwnd, IDC_CH_SHOWOFFLINE, (g_plugin.m_flags & QSO_SHOWOFFLINE) != 0);
+ chkShowOffline.SetState((g_plugin.m_flags & QSO_SHOWOFFLINE) != 0);
szFilterProto = nullptr; // display all protocols
if (g_plugin.m_flags & QSO_SHOWOFFLINE)
bShowOffline = true;
- CheckDlgButton(m_hwnd, IDC_CH_COLORIZE, (g_plugin.m_flags & QSO_COLORIZE) != 0);
+ chkColorize.SetState((g_plugin.m_flags & QSO_COLORIZE) != 0);
// Window
INT_PTR tmp = GetWindowLongPtrW(m_hwnd, GWL_EXSTYLE);
@@ -640,10 +640,10 @@ void QSMainDlg::onChange_ShowOffline(CCtrlCheck *)
void QSMainDlg::onChange_Colorize(CCtrlCheck *)
{
- if (IsDlgButtonChecked(m_hwnd, IDC_CH_COLORIZE))
- g_plugin.m_flags &= ~QSO_COLORIZE;
- else
+ if (chkColorize.IsChecked())
g_plugin.m_flags |= QSO_COLORIZE;
+ else
+ g_plugin.m_flags &= ~QSO_COLORIZE;
RedrawWindow(m_grid.GetHwnd(), nullptr, 0, RDW_INVALIDATE);
}