Changed Cut/Copy/Paste event forwarding logic to avoid deadlocks in future
This commit is contained in:
parent
9a2bc6b743
commit
3b6eff0b44
@ -203,7 +203,7 @@ void wxZRColaFrame::OnExit(wxCommandEvent& event)
|
||||
void wxZRColaFrame::OnForwardEventUpdate(wxUpdateUIEvent& event)
|
||||
{
|
||||
wxControl *focusWnd = wxDynamicCast(FindFocus(), wxControl);
|
||||
if (focusWnd && !m_toolbarCompose->IsDescendant(focusWnd))
|
||||
if (focusWnd && focusWnd->IsKindOf(wxCLASSINFO(wxTextCtrl)))
|
||||
focusWnd->GetEventHandler()->ProcessEvent(event);
|
||||
else
|
||||
event.Enable(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user