]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Changed wxYield to wxYieldIfNeeded in PopupMenu, to avoid recursive wxYield assertions
[wxWidgets.git] / 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);