From 5890b9a61ddfbd0fe84b7db2833bc4761211ffe8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 29 Mar 2018 19:30:11 +0300 Subject: Import: when started in the service mode it opens its window and launched Miranda --- plugins/Import/src/main.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/Import/src/main.cpp') diff --git a/plugins/Import/src/main.cpp b/plugins/Import/src/main.cpp index d1d8447521..2f31ed23c2 100644 --- a/plugins/Import/src/main.cpp +++ b/plugins/Import/src/main.cpp @@ -128,15 +128,14 @@ static INT_PTR ServiceMode(WPARAM, LPARAM) WizardDlgParam param = { IDD_PROGRESS, (LPARAM)ProgressPageProc }; DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_WIZARD), nullptr, WizardDlgProc, LPARAM(¶m)); + return SERVICE_CONTINUE; } - else { - g_bSendQuit = true; - WizardDlgParam param = { IDD_WIZARDINTRO, (LPARAM)WizardIntroPageProc }; - CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_WIZARD), nullptr, WizardDlgProc, (LPARAM)¶m); - } + g_bSendQuit = true; - return SERVICE_CONTINUE; + WizardDlgParam param = { IDD_WIZARDINTRO, (LPARAM)WizardIntroPageProc }; + CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_WIZARD), nullptr, WizardDlgProc, (LPARAM)¶m); + return SERVICE_ONLYDB; } static INT_PTR CustomImport(WPARAM wParam, LPARAM) -- cgit v1.2.3