From 803bbd1ae191a89ffdb3889acb6621431525f96d Mon Sep 17 00:00:00 2001 From: Akseli Lahtinen Date: Fri, 8 Mar 2024 11:37:20 +0000 Subject: Start autoActivationTimer only if hovering over a directory Before starting autoActivationTimer, check that we're hovering the item on top of a directory. If we don't check for it, the the autoActivationTimer will try to open the hovered item in it's default application, which can be distracting and break the actual action the user was trying to do, like moving the file to a directory. BUG:479960 --- src/kitemviews/kitemmodelbase.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kitemviews/kitemmodelbase.cpp') diff --git a/src/kitemviews/kitemmodelbase.cpp b/src/kitemviews/kitemmodelbase.cpp index b49d4ebb1..9fdecafb8 100644 --- a/src/kitemviews/kitemmodelbase.cpp +++ b/src/kitemviews/kitemmodelbase.cpp @@ -128,6 +128,12 @@ bool KItemModelBase::supportsDropping(int index) const return false; } +bool KItemModelBase::canEnterOnHover(int index) const +{ + Q_UNUSED(index) + return false; +} + QString KItemModelBase::blacklistItemDropEventMimeType() const { return QStringLiteral("application/x-dolphin-blacklist-drop"); -- cgit v1.3