@@ -45,7 +45,7 @@ Object {
4545
4646 Action {
4747 id: action
48− text: menuData.label.replace("_", "&")
48+ text: menuData ? menuData.label.replace("_", "&") : ""
4949 }
5050
5151 ListItemLayout {
@@ -53,14 +53,14 @@ Object {
5353 title.text: action.text
5454
5555 Icon {
56− source: menuData && menuData.icon || ""
56+ source: menuData ? menuData.icon : ""
5757 SlotsLayout.position: SlotsLayout.Leading
5858 height: units.gu(3)
5959 }
6060
6161 Label {
62− text: menuData.shortcut
63− visible: menuData.shortcut && QuickUtils.keyboardAttached
62+ text: menuData ? menuData.shortcut : ""
63+ visible: menuData && menuData.shortcut && QuickUtils.keyboardAttached
6464 SlotsLayout.position: SlotsLayout.Trailing
6565 color: enabled ? theme.palette.normal.backgroundSecondaryText :
6666 theme.palette.disabled.backgroundSecondaryText
@@ -86,7 +86,7 @@ Object {
8686
8787 Action {
8888 id: action
89− text: menuData.label.replace("_", "&")
89+ text: menuData ? menuData.label.replace("_", "&") : ""
9090 }
9191
9292 ListItemLayout {
@@ -94,7 +94,7 @@ Object {
9494 title.text: action.text
9595
9696 Icon {
97− source: menuData && menuData.icon || ""
97+ source: menuData ? menuData.icon : ""
9898 SlotsLayout.position: SlotsLayout.Leading
9999 height: units.gu(3)
100100 }