From 49959b6d4b0fa837e02ba03cc62bfb94dda517c0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 22 Mar 2018 22:20:46 +0300 Subject: Import - adaptation for batch import processing --- plugins/Import/src/progress.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins/Import/src/progress.cpp') diff --git a/plugins/Import/src/progress.cpp b/plugins/Import/src/progress.cpp index 6fa32e8701..26708529c4 100644 --- a/plugins/Import/src/progress.cpp +++ b/plugins/Import/src/progress.cpp @@ -51,8 +51,12 @@ INT_PTR CALLBACK ProgressPageProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM case PROGM_START: MirandaImport(hdlg); - SendMessage(GetParent(hdlg), WIZM_ENABLEBUTTON, 1, 0); - SendMessage(GetParent(hdlg), WIZM_ENABLEBUTTON, 2, 0); + if (g_bServiceMode && !g_bSendQuit) + DestroyWindow(hwndWizard); + else { + SendMessage(GetParent(hdlg), WIZM_ENABLEBUTTON, 1, 0); + SendMessage(GetParent(hdlg), WIZM_ENABLEBUTTON, 2, 0); + } break; case WM_COMMAND: -- cgit v1.2.3