From afe0dd7514f9660a6f5fe390bdd7702fcbe5d1ad Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Fri, 19 May 2017 17:26:22 +0300 Subject: [PATCH] fix #471,check in plasma 5.10 functions exist --we check not only the plasma frameworks version but if jumplists and places functions exist also --- plasmoid/package/contents/ui/ContextMenu.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plasmoid/package/contents/ui/ContextMenu.qml b/plasmoid/package/contents/ui/ContextMenu.qml index 7d24e7c68..ebcfd1956 100644 --- a/plasmoid/package/contents/ui/ContextMenu.qml +++ b/plasmoid/package/contents/ui/ContextMenu.qml @@ -103,7 +103,9 @@ PlasmaComponents.ContextMenu { //From Plasma 5.10 and frameworks 5.34 jumpLists and //places are supported - if (Latte.WindowSystem.frameworksVersion >= 336384) { + if (Latte.WindowSystem.frameworksVersion >= 336384 + && (typeof backend.jumpListActions === "function") + && (typeof backend.placesActions === "function")) { lists = [ backend.jumpListActions(launcherUrl, menu), backend.placesActions(launcherUrl, showAllPlaces, menu),