Remove modal behavior to prevent deadlock

master
boisso 8 years ago
parent ea6ffa24bd
commit a603c48860
  1. 8
      k-meleon/BrowserFrm.cpp

@ -1403,7 +1403,7 @@ INT_PTR CBrowserFrame::DoModal()
CWinApp* pApp = AfxGetApp();
if (pApp != NULL)
pApp->EnableModeless(FALSE);
/*
HWND hWndTop = NULL;
HWND hWndParent = CWnd::GetSafeOwner_(GetParent()->GetSafeHwnd(), &hWndTop);
@ -1413,11 +1413,11 @@ INT_PTR CBrowserFrame::DoModal()
::EnableWindow(hWndParent, FALSE);
::EnableWindow(m_hWnd, TRUE);
bEnableParent = TRUE;
}
}*/
m_nFlags |= WF_CONTINUEMODAL;
RunModalLoop(0);
/*
if (bEnableParent)
::EnableWindow(hWndParent, TRUE);
if (hWndParent != NULL && ::GetActiveWindow() == m_hWnd)
@ -1425,7 +1425,7 @@ INT_PTR CBrowserFrame::DoModal()
if (::IsWindow(hWndTop))
::EnableWindow(hWndTop, TRUE);
*/
if (pApp != NULL)
pApp->EnableModeless(TRUE);

Loading…
Cancel
Save