From d8c016989bd189f22b4862ea81769c5b11415deb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 Aug 2012 13:05:06 +0000 Subject: fix for the modeless window git-svn-id: http://svn.miranda-ng.org/main/trunk@1378 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Notifications.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index bedbb36723..857a38229a 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -255,7 +255,7 @@ static void ApplyUpdates(void* param) } if (todo.size() == 0) { - EndDialog(hDlg, IDOK); + DestroyWindow(hDlg); return; } @@ -271,7 +271,7 @@ static void ApplyUpdates(void* param) if (rc != IDYES) { mir_sntprintf(tszBuff, SIZEOF(tszBuff), TranslateT("You have chosen not to install the plugin updates immediately.\nYou can install it manually from this location:\n\n%s"), tszFileBack); ShowPopup(0, LPGENT("Plugin Updater"), tszBuff, 2, 0); - EndDialog(hDlg, IDOK); + DestroyWindow(hDlg); return; } @@ -285,7 +285,7 @@ static void ApplyUpdates(void* param) unzip(p.File.tszDiskPath, tszMirandaPath, tszFileTemp); } - EndDialog(hDlg, IDOK); + DestroyWindow(hDlg); CallFunctionAsync(RestartMe, 0); } @@ -400,7 +400,7 @@ INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam case IDCANCEL: Utils_SaveWindowPosition(hDlg, NULL, MODNAME, "ConfirmWindow"); - EndDialog(hDlg, IDCANCEL); + DestroyWindow(hDlg); return TRUE; } } -- cgit v1.2.3