fixed copy/paste error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -872,14 +872,15 @@ wxWindowDisabler::~wxWindowDisabler()
|
|||||||
|
|
||||||
// Yield to other apps/messages and disable user input to all windows except
|
// Yield to other apps/messages and disable user input to all windows except
|
||||||
// the given one
|
// the given one
|
||||||
bool wxSafeYield(wxWindow *win, bool onlyIfNeeded = FALSE)
|
bool wxSafeYield(wxWindow *win, bool onlyIfNeeded)
|
||||||
{
|
{
|
||||||
wxWindowDisabler wd(win);
|
wxWindowDisabler wd(win);
|
||||||
|
|
||||||
|
bool rc;
|
||||||
if (onlyIfNeeded)
|
if (onlyIfNeeded)
|
||||||
bool rc = wxYieldIfNeeded();
|
rc = wxYieldIfNeeded();
|
||||||
else
|
else
|
||||||
bool rc = wxYield();
|
rc = wxYield();
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user