┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkseli Lahtinen <[email protected]>2025-04-23 15:39:36 +0300
committerAkseli Lahtinen <[email protected]>2025-04-23 15:39:36 +0300
commit0f75aa69ea5cd448553d80fc20b172ee5eb28092 (patch)
tree957b0f4ed0762417aa6375242856d326ae639a60
parentf30627c9899a72f9ac4392a27b02b97fad509c49 (diff)
DolphinView: If contextmenu is requested, abort twoClicksRenaming
When using single click to select, user can double click the file to start renaming it. If user at the same time also opens context menu, user can delete the file while the renaming prompt is open, which causes weirdness. This patch makes sure we abort the double click renaming when context menu is requested. BUG: 503185
-rw-r--r--src/views/dolphinview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp
index d5908a081..f3bde88df 100644
--- a/src/views/dolphinview.cpp
+++ b/src/views/dolphinview.cpp
@@ -1174,6 +1174,9 @@ void DolphinView::slotItemContextMenuRequested(int index, const QPointF &pos)
if (m_selectionChangedTimer->isActive()) {
emitSelectionChangedSignal();
}
+ if (m_twoClicksRenamingTimer->isActive()) {
+ abortTwoClicksRenaming();
+ }
const KFileItem item = m_model->fileItem(index);
Q_EMIT requestContextMenu(pos.toPoint(), item, selectedItems(), url());