]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed wxYield to wxYieldIfNeeded in PopupMenu, to avoid recursive wxYield assertions
authorJulian Smart <julian@anthemion.co.uk>
Fri, 6 Apr 2001 12:02:56 +0000 (12:02 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 6 Apr 2001 12:02:56 +0000 (12:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 4a6d863b2d0cf8136d18d62ea21e60d5715b82e0..54fb437cd00ca63759bb9fb86d3f0aa5fbf34e34 100644 (file)
@@ -1470,7 +1470,7 @@ bool wxWindow::DoPopupMenu(wxMenu *menu, int x, int y)
     ::ClientToScreen(hWnd, &point);
     wxCurrentPopupMenu = menu;
     ::TrackPopupMenu(hMenu, TPM_RIGHTBUTTON, point.x, point.y, 0, hWnd, NULL);
-    wxYield();
+    wxYieldIfNeeded();
     wxCurrentPopupMenu = NULL;
 
     menu->SetInvokingWindow(NULL);