diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index 4c7abae78d..75ab6ef07c 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -114,7 +114,9 @@ wxMenuItemBase::~wxMenuItemBase() wxAcceleratorEntry *wxMenuItemBase::GetAccel() const { - return wxAcceleratorEntry::Create(GetItemLabel()); + const wxString accel = GetItemLabel().AfterFirst(wxT('\t')); + + return accel.empty() ? NULL : wxAcceleratorEntry::Create(accel); } void wxMenuItemBase::SetAccel(wxAcceleratorEntry *accel)