Remove unnecessary check for gs_deferredFocusOut
GTKHandleDeferredFocusOut() is only ever called when gs_deferredFocusOut is non-null, so there is no need to check for it inside this function again. No real changes.
This commit is contained in:
@@ -4465,17 +4465,14 @@ void wxWindowGTK::GTKHandleDeferredFocusOut()
|
|||||||
// NB: See GTKHandleFocusOut() for explanation. This function is called
|
// NB: See GTKHandleFocusOut() for explanation. This function is called
|
||||||
// from either GTKHandleFocusIn() or OnInternalIdle() to process
|
// from either GTKHandleFocusIn() or OnInternalIdle() to process
|
||||||
// deferred event.
|
// deferred event.
|
||||||
if ( gs_deferredFocusOut )
|
wxWindowGTK *win = gs_deferredFocusOut;
|
||||||
{
|
gs_deferredFocusOut = NULL;
|
||||||
wxWindowGTK *win = gs_deferredFocusOut;
|
|
||||||
gs_deferredFocusOut = NULL;
|
|
||||||
|
|
||||||
wxLogTrace(TRACE_FOCUS,
|
wxLogTrace(TRACE_FOCUS,
|
||||||
"processing deferred focus_out event for %s(%p, %s)",
|
"processing deferred focus_out event for %s(%p, %s)",
|
||||||
win->GetClassInfo()->GetClassName(), win, win->GetLabel());
|
win->GetClassInfo()->GetClassName(), win, win->GetLabel());
|
||||||
|
|
||||||
win->GTKHandleFocusOutNoDeferring();
|
win->GTKHandleFocusOutNoDeferring();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowGTK::SetFocus()
|
void wxWindowGTK::SetFocus()
|
||||||
|
Reference in New Issue
Block a user