diff --git a/src/qt/menuitem.cpp b/src/qt/menuitem.cpp index 9471909fa1..268c8300b4 100644 --- a/src/qt/menuitem.cpp +++ b/src/qt/menuitem.cpp @@ -179,7 +179,7 @@ void wxQtAction::UpdateShortcutsFromLabel(const wxString& text) if ( index != -1 ) { - QList shortcuts = m_qtAction->shortcuts(); + QList shortcuts; QString shortcut_key = qlabel.remove( 0, index+1 ); shortcuts.append( QKeySequence( shortcut_key ) );