mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +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 {
|
} else {
|
||||||
const bool singleClickActivation = m_view->style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick) || m_singleClickActivationEnforced;
|
const bool singleClickActivation = m_view->style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick) || m_singleClickActivationEnforced;
|
||||||
if (!singleClickActivation) {
|
if (!singleClickActivation) {
|
||||||
emitItemActivated = touch;
|
emitItemActivated = touch && !m_selectionMode;
|
||||||
} else {
|
} else {
|
||||||
// activate on single click only if we didn't come from a rubber band release
|
// activate on single click only if we didn't come from a rubber band release
|
||||||
emitItemActivated = !rubberBandRelease;
|
emitItemActivated = !rubberBandRelease;
|
||||||
|
|
Loading…
Reference in a new issue