summaryrefslogtreecommitdiff
path: root/plugins/Popup/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-09 20:05:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-09 20:05:40 +0300
commit691f43b900a28f1cf651b026be2d0889901bf9c0 (patch)
treef46a922f04e83d6f1434bd09a5c9b9446a36879f /plugins/Popup/src
parentb3426f18af23b81b24934395dfe24d16ef213b8e (diff)
fixes #2156: error in Popup+ options logic)
Diffstat (limited to 'plugins/Popup/src')
-rw-r--r--plugins/Popup/src/opt_gen.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Popup/src/opt_gen.cpp b/plugins/Popup/src/opt_gen.cpp
index c5e3a31340..6e90a9f4e7 100644
--- a/plugins/Popup/src/opt_gen.cpp
+++ b/plugins/Popup/src/opt_gen.cpp
@@ -341,8 +341,9 @@ INT_PTR CALLBACK DlgProcPopupGeneral(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
int chk = IsDlgButtonChecked(hwnd, IDC_POPUPENABLED);
if (bEnabled && chk || !bEnabled && !chk)
svcEnableDisableMenuCommand(0, 0);
- EnableWindow(GetDlgItem(hwnd, IDC_STATUSES), bEnabled);
- EnableWindow(GetDlgItem(hwnd, IDC_DISABLEINFS), bEnabled);
+ EnableWindow(GetDlgItem(hwnd, IDC_STATUSES), !bEnabled);
+ EnableWindow(GetDlgItem(hwnd, IDC_DISABLEINFS), !bEnabled);
+ SendMessage(GetParent(hwnd), PSM_CHANGED, 0, 0);
}
break;