mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Don't enable two-clicks renaming in single-click mode
Summary:
This was supposed to be part of commit 5454283008
, but apparently we
didn't notice it was missing.
Test Plan:
- Enable single-click mode from system settings
- Select a file in dolphin
- Long-click the selected file and make sure inline renaming doesn't start
Subscribers: kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D16460
This commit is contained in:
parent
502a5c86fe
commit
e26ee6455e
|
@ -1116,7 +1116,7 @@ void DolphinView::slotMouseButtonPressed(int itemIndex, Qt::MouseButtons buttons
|
|||
|
||||
void DolphinView::slotSelectedItemTextPressed(int index)
|
||||
{
|
||||
if (GeneralSettings::renameInline()) {
|
||||
if (GeneralSettings::renameInline() && !m_view->style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick)) {
|
||||
const KFileItem item = m_model->fileItem(index);
|
||||
const KFileItemListProperties capabilities(KFileItemList() << item);
|
||||
if (capabilities.supportsMoving()) {
|
||||
|
|
Loading…
Reference in a new issue