diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-06 13:05:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-06 13:05:06 +0000 |
commit | d8c016989bd189f22b4862ea81769c5b11415deb (patch) | |
tree | 86349d59459d61e4a0f346c9e68e313eab5244d1 /plugins | |
parent | 4207fda2535b6c1c1aa8e242da2de04ab40ba76b (diff) |
fix for the modeless window
git-svn-id: http://svn.miranda-ng.org/main/trunk@1378 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/PluginUpdater/src/Notifications.cpp | 8 |
1 files 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;
}
}
|