diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-18 15:19:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-18 15:19:45 +0300 |
commit | f4d2bc200b670221a1bfa8c818cc86c56d51ec64 (patch) | |
tree | e9040319366d1f9af7966cdbf031ed098bd9a8af /plugins/Scriver | |
parent | 1f323f02b48b595e9a27ba78d91cfcf40873b143 (diff) |
fixes #2697 (Scriver: падение при попытке зайти в настройки)
Diffstat (limited to 'plugins/Scriver')
-rw-r--r-- | plugins/Scriver/res/resource.rc | 4 | ||||
-rw-r--r-- | plugins/Scriver/src/msgoptions.cpp | 12 |
2 files changed, 2 insertions, 14 deletions
diff --git a/plugins/Scriver/res/resource.rc b/plugins/Scriver/res/resource.rc index fcf6a8ec9e..18b887e848 100644 --- a/plugins/Scriver/res/resource.rc +++ b/plugins/Scriver/res/resource.rc @@ -35,9 +35,9 @@ BEGIN "Button",BS_AUTOCHECKBOX | WS_TABSTOP,6,12,155,10
CONTROL "Tree1",IDC_POPLIST,"SysTreeView32",TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_NONEVENHEIGHT | WS_BORDER | WS_HSCROLL | WS_TABSTOP,163,12,98,44
CONTROL "and stay minimized",IDC_STAYMINIMIZED,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,20,23,141,10
- CONTROL "Cascade new windows",IDC_CASCADE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,6,58,293,10
+ CONTROL "Cascade new windows",IDC_CASCADE,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,6,58,293,10
CONTROL "Save size and location for each contact",IDC_SAVEPERCONTACT,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,6,69,293,10
+ "Button",BS_AUTORADIOBUTTON | WS_TABSTOP,6,69,293,10
CONTROL "Minimize on send",IDC_AUTOMIN,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,6,80,293,10
CONTROL "Hide windows on close",IDC_HIDECONTAINERS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,6,91,293,10
CONTROL "Remember unsent messages",IDC_SAVEDRAFTS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,6,103,293,10
diff --git a/plugins/Scriver/src/msgoptions.cpp b/plugins/Scriver/src/msgoptions.cpp index 6193b1a9d0..09c66ce93d 100644 --- a/plugins/Scriver/src/msgoptions.cpp +++ b/plugins/Scriver/src/msgoptions.cpp @@ -271,9 +271,7 @@ public: CreateLink(chkStayMinimized, g_plugin.bStayMinimized);
CreateLink(chkSavePerContact, g_plugin.bSavePerContact);
- chkCascade.OnChange = Callback(this, &CMainOptionsDlg::onChange_Cascade);
chkAutoPopup.OnChange = Callback(this, &CMainOptionsDlg::onChange_AutoPopup);
- chkSavePerContact.OnChange = Callback(this, &CMainOptionsDlg::onChange_SavePerContact);
}
bool OnInitDialog() override
@@ -303,16 +301,6 @@ public: m_tree.Enable(bChecked);
EnableWindow(GetDlgItem(m_hwnd, IDC_STAYMINIMIZED), bChecked);
}
-
- void onChange_Cascade(CCtrlCheck*)
- {
- chkSavePerContact.SetState(!chkCascade.GetState());
- }
-
- void onChange_SavePerContact(CCtrlCheck*)
- {
- chkCascade.SetState(!chkSavePerContact.GetState());
- }
};
/////////////////////////////////////////////////////////////////////////////////////////
|