From a7a5b0dbc9f06ef5a083116f4977a88ebcd9cefd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Mar 2016 13:13:02 +0000 Subject: we need to close the second window too git-svn-id: http://svn.miranda-ng.org/main/trunk@16448 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ImportTXT/importtxt.dpr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/ImportTXT/importtxt.dpr') diff --git a/plugins/ImportTXT/importtxt.dpr b/plugins/ImportTXT/importtxt.dpr index 7a586f2f70..1858eb04ae 100644 --- a/plugins/ImportTXT/importtxt.dpr +++ b/plugins/ImportTXT/importtxt.dpr @@ -112,8 +112,10 @@ end; function OnPreShutdown(wParam: wParam; lParam: lParam): int; cdecl; begin - if (hwndWizard <> 0) then + if IsWindow(hwndWizard) then SendMessage(hwndWizard, WM_CLOSE, 0, 0); + if IsWindow(hwndDialog) then + SendMessage(hwndDialog, WM_CLOSE, 0, 0); result := 0; end; -- cgit v1.2.3