summaryrefslogtreecommitdiff
path: root/plugins/Import
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-29 19:30:11 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-29 19:30:11 +0300
commit5890b9a61ddfbd0fe84b7db2833bc4761211ffe8 (patch)
treea12310740d0987fc63d10aaf4fa01c4f1bb8b134 /plugins/Import
parent9aa85e74dcb8ef8bda5cd94a5cda60267816a082 (diff)
Import: when started in the service mode it opens its window and launched Miranda
Diffstat (limited to 'plugins/Import')
-rw-r--r--plugins/Import/src/main.cpp11
1 files changed, 5 insertions, 6 deletions
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(&param));
+ return SERVICE_CONTINUE;
}
- else {
- g_bSendQuit = true;
- WizardDlgParam param = { IDD_WIZARDINTRO, (LPARAM)WizardIntroPageProc };
- CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_WIZARD), nullptr, WizardDlgProc, (LPARAM)&param);
- }
+ g_bSendQuit = true;
- return SERVICE_CONTINUE;
+ WizardDlgParam param = { IDD_WIZARDINTRO, (LPARAM)WizardIntroPageProc };
+ CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_WIZARD), nullptr, WizardDlgProc, (LPARAM)&param);
+ return SERVICE_ONLYDB;
}
static INT_PTR CustomImport(WPARAM wParam, LPARAM)