diff options
Diffstat (limited to 'plugins/Import/src/progress.cpp')
-rw-r--r-- | plugins/Import/src/progress.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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:
|