mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Make touch tap to select items work in selection mode
Thanks to Steffen Hartleib for the help.
This commit is contained in:
parent
2e588733c7
commit
eb7a2e18ed
|
@ -1783,7 +1783,7 @@ bool KItemListController::onRelease(const QPointF& pos, const Qt::KeyboardModifi
|
|||
} else {
|
||||
const bool singleClickActivation = m_view->style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick) || m_singleClickActivationEnforced;
|
||||
if (!singleClickActivation) {
|
||||
emitItemActivated = touch;
|
||||
emitItemActivated = touch && !m_selectionMode;
|
||||
} else {
|
||||
// activate on single click only if we didn't come from a rubber band release
|
||||
emitItemActivated = !rubberBandRelease;
|
||||
|
|
Loading…
Reference in a new issue