diff options
author | George Hazan <george.hazan@gmail.com> | 2016-03-08 13:13:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-03-08 13:13:02 +0000 |
commit | a7a5b0dbc9f06ef5a083116f4977a88ebcd9cefd (patch) | |
tree | 3f18cc1aa671d241bf72d613ab868ba0f780761b /plugins/ImportTXT | |
parent | be92c7714135da5e18bbc066d7187d0f36443139 (diff) |
we need to close the second window too
git-svn-id: http://svn.miranda-ng.org/main/trunk@16448 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ImportTXT')
-rw-r--r-- | plugins/ImportTXT/importtxt.dpr | 4 |
1 files changed, 3 insertions, 1 deletions
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;
|