summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2017-03-02 16:29:48 +0100
committerKai Uwe Broulik <[email protected]>2017-03-02 16:29:48 +0100
commit3dc7b62129c5009a8973d0959eb15573174b8368 (patch)
tree652b8c5e5a2f08eb86d8465c9637e289035f53c4
parentb4d8de1ed9ec026730efcd204b13ea4e4a7fc2bd (diff)
[Folder View] Cancel rename when scrolling
When renaming and then starting a scroll (e.g. using mouse wheel) cancel renaming. This prevents the editor floating in mid-air and also makes it consistent with Dolphin. Differential Revision: https://phabricator.kde.org/D4895
-rw-r--r--containments/desktop/package/contents/ui/FolderView.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/containments/desktop/package/contents/ui/FolderView.qml b/containments/desktop/package/contents/ui/FolderView.qml
index 73e3e08..cb8b87b 100644
--- a/containments/desktop/package/contents/ui/FolderView.qml
+++ b/containments/desktop/package/contents/ui/FolderView.qml
@@ -519,6 +519,8 @@ Item {
hoverActivateTimer.stop();
}
+ editor.targetItem = null;
+
dir.setDragHotSpotScrollOffset(contentX, contentY);
if (contentX == 0) {
@@ -552,6 +554,8 @@ Item {
hoverActivateTimer.stop();
}
+ editor.targetItem = null;
+
dir.setDragHotSpotScrollOffset(contentX, contentY);
if (contentY == 0) {