Avoid closing the updater dialog when the window close button is clicked.

This prevents the user closing the dialog whilst the update is in
progress.  Once the update has been installed, the user can click
the 'Finish' button to close the dialog and restart the application.
This commit is contained in:
Robert Knight 2011-08-23 20:03:55 +01:00
parent 448d43c5e0
commit 3a7d41e630

View file

@ -147,6 +147,12 @@ LRESULT WINAPI UpdateDialogWin32::windowProc(HWND window, UINT message, WPARAM w
{
switch (message)
{
case WM_CLOSE:
if (window == m_window.GetHwnd())
{
return 0;
}
break;
case WM_COMMAND:
{
if (reinterpret_cast<HWND>(lParam) == m_finishButton.GetHwnd())