Don't try to call CanUndo/CanRedo for read-only combobox since we'll get an assert.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6aff27c9f1
commit
c0e15042c3
@ -610,12 +610,12 @@ void wxComboBox::OnUpdatePaste(wxUpdateUIEvent& event)
|
||||
|
||||
void wxComboBox::OnUpdateUndo(wxUpdateUIEvent& event)
|
||||
{
|
||||
event.Enable( CanUndo() );
|
||||
event.Enable( IsEditable() && CanUndo() );
|
||||
}
|
||||
|
||||
void wxComboBox::OnUpdateRedo(wxUpdateUIEvent& event)
|
||||
{
|
||||
event.Enable( CanRedo() );
|
||||
event.Enable( IsEditable() && CanRedo() );
|
||||
}
|
||||
|
||||
void wxComboBox::OnUpdateDelete(wxUpdateUIEvent& event)
|
||||
|
Loading…
Reference in New Issue
Block a user