diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-05-10 09:47:53 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-05-10 09:47:53 +0000 |
commit | 4ff152f48ca945be4a0065a5f57246449c741f8a (patch) | |
tree | 0fd33b2fd154d5ece3e6df4df271685a91dd88b3 /plugins/PluginUpdater/src/DlgListNew.cpp | |
parent | 2d5679d79f16628fdc2f4b9f420817b6c3c1c6b1 (diff) |
fixed windows closing after operations
code sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@9155 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/DlgListNew.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgListNew.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp index eded09dc1e..255066ea01 100644 --- a/plugins/PluginUpdater/src/DlgListNew.cpp +++ b/plugins/PluginUpdater/src/DlgListNew.cpp @@ -40,7 +40,7 @@ static void ApplyDownloads(void *param) // if we need to escalate priviledges, launch a atub
if (!PrepareEscalation()) {
- DestroyWindow(hDlg);
+ EndDialog(hDlg, 0);
return;
}
@@ -118,9 +118,7 @@ static void ApplyDownloads(void *param) if (rc == IDYES)
CallFunctionAsync(OpenPluginOptions, 0);
- CloseWindow(hDlg);
- DestroyWindow(hDlg);
- hwndDialog = NULL;
+ EndDialog(hDlg, 0);
return;
}
@@ -363,6 +361,10 @@ INT_PTR CALLBACK DlgList(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) }
break;
+ case WM_CLOSE:
+ DestroyWindow(hDlg);
+ break;
+
case WM_DESTROY:
Utils_SaveWindowPosition(hDlg, NULL, MODNAME, "ListWindow");
Skin_ReleaseIcon((HICON)SendMessage(hDlg, WM_SETICON, ICON_BIG, 0));
|