diff --git a/containments/desktop/package/contents/ui/FolderView.qml b/containments/desktop/package/contents/ui/FolderView.qml --- a/containments/desktop/package/contents/ui/FolderView.qml +++ b/containments/desktop/package/contents/ui/FolderView.qml @@ -68,6 +68,10 @@ } } + function cancelRename() { + editor.targetItem = null; + } + function linkHere(sourceUrl) { dir.linkHere(sourceUrl); } diff --git a/containments/desktop/package/contents/ui/FolderViewLayer.qml b/containments/desktop/package/contents/ui/FolderViewLayer.qml --- a/containments/desktop/package/contents/ui/FolderViewLayer.qml +++ b/containments/desktop/package/contents/ui/FolderViewLayer.qml @@ -57,6 +57,10 @@ } } + function cancelRename() { + folderView.cancelRename(); + } + PlasmaCore.Svg { id: actionOverlays @@ -138,6 +142,7 @@ folderView.currentIndex = -1; folderView.model.clearSelection(); + folderView.cancelRename(); } }