on xenial help sign in
MenuItemFactory: protect from unset context
commit1de2290dd5cd1c1f302c004651caeeb6121cb9eb authorMarco Trevisan (Treviño) <mail@3v1n0.net> dateThu 22 Sep 2016, 17:32 (10 years ago) parent5abb376
1 file changed+1−1
qml/Panel/Indicators/MenuItemFactory.qml+1−1
qml/Panel/Indicators/MenuItemFactory.qml+1−1
@@ -1026,7 +1026,7 @@ Item {
10261026 }
10271027
10281028 function load(modelData, context) {
1029− if (context.indexOf("fake-") == 0)
1029+ if (context && context.indexOf("fake-") == 0)
10301030 context = context.substring("fake-".length)
10311031
10321032 if (modelData.action !== undefined && modelData.action !== "") {