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