]> cloud.milkyroute.net Git - dolphin.git/commit
Start autoActivationTimer only if hovering over a directory
authorAkseli Lahtinen <akselmo@akselmo.dev>
Fri, 8 Mar 2024 11:37:20 +0000 (11:37 +0000)
committerAkseli Lahtinen <akselmo@akselmo.dev>
Fri, 8 Mar 2024 11:37:20 +0000 (11:37 +0000)
commit803bbd1ae191a89ffdb3889acb6621431525f96d
tree9d0e7fedf8326c7a73d1376eb5e10e8d20aea67b
parent599ddb3c0dcfa1d676653de72caa238f8fce6d49
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/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/kitemviews/kitemlistcontroller.cpp
src/kitemviews/kitemmodelbase.cpp
src/kitemviews/kitemmodelbase.h