[graphics/krita] 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 d6d25e0564cdf66ec6f9f30abb402d14315b46b0 by Dmitry Kazakov, on behalf of Luna Lovecraft.
Committed on 17/07/2026 at 10:26.
Pushed by dkazakov into branch 'master'.
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/d6d25e0564cdf66ec6f9f30abb402d14315b46b0
diff --git a/libs/flake/tools/KoPathTool.cpp b/libs/flake/tools/KoPathTool.cpp
index cc4c5ceb9c3..7430c05fb02 100644
--- a/libs/flake/tools/KoPathTool.cpp
+++ b/libs/flake/tools/KoPathTool.cpp
@@ -809,7 +809,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
@@ -829,6 +829,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();
}