[graphics/krita/krita/6.0] libs/flake/tools: Fix cursor not immediately updating after splitting a path

Dmitry Kazakov <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit db0a9295b6c919d17ebf51c35585a566b33b85fd by Dmitry Kazakov, on behalf of Luna Lovecraft.
Committed on 17/07/2026 at 10:26.
Pushed by dkazakov into branch 'krita/6.0'.

Fix cursor not immediately updating after splitting a path

Before this commit when splitting a path the user would have to move the
mouse slightly before being able to move the newly created point

M  +4    -1    libs/flake/tools/KoPathTool.cpp

https://invent.kde.org/graphics/krita/-/commit/db0a9295b6c919d17ebf51c35585a566b33b85fd

diff --git a/libs/flake/tools/KoPathTool.cpp b/libs/flake/tools/KoPathTool.cpp
index d019094b7e3..759e3fbdc85 100644
--- a/libs/flake/tools/KoPathTool.cpp
+++ b/libs/flake/tools/KoPathTool.cpp
@@ -806,7 +806,7 @@ void KoPathTool::keyReleaseEvent(QKeyEvent *event)
     event->accept();
 }
 
-void KoPathTool::mouseDoubleClickEvent(KoPointerEvent */*event*/)
+void KoPathTool::mouseDoubleClickEvent(KoPointerEvent *event)
 {
     Q_D(KoToolBase);
     // check if we are doing something else at the moment
@@ -826,6 +826,9 @@ void KoPathTool::mouseDoubleClickEvent(KoPointerEvent */*event*/)
             m_pointSelection.add(p, false);
         }
         updateActions();
+
+        // Call a mouse move event to update the cursor and allow the user to drag the new point immediately
+        mouseMoveEvent(event);
     } else if (!m_activeHandle && !m_activeSegment) {
         explicitUserStrokeEndRequest();
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.