fix #88,protect launchers from adding icon info

pull/1/head
Michail Vourlakos 8 years ago
parent 254ad13536
commit e74a6ed5be

@ -567,7 +567,7 @@ PlasmaComponents.ContextMenu {
if (tasksModel.launcherPosition(visualParent.m.LauncherUrlWithoutIcon) != -1) {
tasksModel.requestRemoveLauncher(visualParent.m.LauncherUrlWithoutIcon);
} else {
tasksModel.requestAddLauncher(visualParent.m.LauncherUrl);
tasksModel.requestAddLauncher(visualParent.m.LauncherUrlWithoutIcon);
}
}
}

@ -349,7 +349,6 @@ Item {
onAddLauncher: {
tasksModel.requestAddLauncher(url);
// tasksModel.move(pos, newDroppedPosition);
}
}
@ -957,6 +956,13 @@ Item {
}
function addLauncher(url) {
//workaround to protect in case the launcher contains the iconData
var pos = url.indexOf("?iconData=");
if (pos>0) {
url = url.substring( 0, url.indexOf("?iconData=" ) );
}
tasksModel.requestAddLauncher(url);
}

Loading…
Cancel
Save