diff options
author | George Hazan <ghazan@miranda.im> | 2021-04-11 12:01:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-04-11 12:01:31 +0300 |
commit | eb37be750853ee7e21406100e90b96469d501d36 (patch) | |
tree | a2cb1924d33cb870c9069fb5ab61dd86de5081fc /plugins | |
parent | 3d756278c4ff1332193ea16c41e4ce4a1a2ff298 (diff) |
fixes #2789 (Import: опция "не загружать плагин при старте" не работает)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Import/src/stdafx.h | 2 | ||||
-rw-r--r-- | plugins/Import/src/wizard.cpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/Import/src/stdafx.h b/plugins/Import/src/stdafx.h index 2382cf261f..a8629c7a13 100644 --- a/plugins/Import/src/stdafx.h +++ b/plugins/Import/src/stdafx.h @@ -222,6 +222,8 @@ public: class CFinishedPageDlg : public CWizardPageDlg
{
+ typedef CWizardPageDlg CSuper;
+
public:
CFinishedPageDlg();
int Resizer(UTILRESIZECONTROL *urc) override;
diff --git a/plugins/Import/src/wizard.cpp b/plugins/Import/src/wizard.cpp index 9693717214..4345f30986 100644 --- a/plugins/Import/src/wizard.cpp +++ b/plugins/Import/src/wizard.cpp @@ -53,7 +53,7 @@ void CIntroPageDlg::OnNext() // Final wizard page
CFinishedPageDlg::CFinishedPageDlg() :
- CWizardPageDlg(IDD_FINISHED)
+ CSuper(IDD_FINISHED)
{}
bool CFinishedPageDlg::OnInitDialog()
@@ -77,9 +77,9 @@ void CFinishedPageDlg::OnNext() void CFinishedPageDlg::OnCancel()
{
if (IsDlgButtonChecked(m_hwnd, IDC_DONTLOADPLUGIN))
- db_set_b(0, "PluginDisable", "import", 1);
+ SetPluginOnWhiteList("import", false);
- CWizardPageDlg::OnCancel();
+ CSuper::OnCancel();
}
/////////////////////////////////////////////////////////////////////////////////////////
|