| Summary: | Dragging an attachment also opens the "Open Attachment" dialogue | ||
|---|---|---|---|
| Product: | [Applications] kmail2 | Reporter: | Jonathan Marten <jjm> |
| Component: | UI | Assignee: | kdepim bugs <pim-bugs-null> |
| Status: | ASSIGNED --- | ||
| Severity: | normal | CC: | montel |
| Priority: | NOR | ||
| Version First Reported In: | Git (master) | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Jonathan Marten
2025-06-28 14:15:00 UTC
I confirm it The problem is that MailWebEngineView::forwardMousePressEvent() checks that a drag could potentially be started, but does not accept the event. So the click is also seen and the attachment URL opened by WebEnginePage::acceptNavigationRequest(). The solution may be to accept the mouse press event, and then if a mouse release event happens without a drag having been started then and only then action the URL click. A possibly relevant merge request was started @ https://invent.kde.org/pim/messagelib/-/merge_requests/281 |