[wayland] - dont crash on tasks right click

BUG:417546
FIXED-IN:0.9.9
pull/11/head
Michail Vourlakos 5 years ago
parent aedea03193
commit 0406a9a411

@ -434,8 +434,7 @@ PlasmaComponents.ContextMenu {
menuItem.checked = Qt.binding((function(i) {
return function() {
if (root.plasma515) {
var vds = menu.get(atm.VirtualDesktops);
return (menu.visualParent && (vds !== undefined) && vds.indexOf(virtualDesktopInfo.desktopIds[i]) > -1);
return (menu.visualParent && menu.get(atm.VirtualDesktops).indexOf(virtualDesktopInfo.desktopIds[i]) > -1);
} else {
return (menu.visualParent && menu.get(atm.VirtualDesktop) === (i + 1));
}

Loading…
Cancel
Save