Summary: | Opening a file through the recent files menu breaks the list of recent files | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kconfigwidgets | Reporter: | popov895 <popov895> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | popov895 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kconfigwidgets/commit/5aaf0c3e021c9a48b425a0b02212eb699d532177 | Version Fixed In: | |
Sentry Crash Report: |
Description
popov895
2022-11-05 11:02:20 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kconfigwidgets/-/merge_requests/168 Git commit 5aaf0c3e021c9a48b425a0b02212eb699d532177 by Christoph Cullmann, on behalf of Eugene Popov. Committed on 12/11/2022 at 22:13. Pushed by cullmann into branch 'master'. [KRecentFilesAction] Fix broken recent files list Modifying the list of recent files in the `urlSelected` signal handler (as it happens in Okular: [`Shell::openUrl`](https://invent.kde.org/graphics/okular/-/blob/master/shell/shell.cpp#L332) > [`KRecentFilesAction::addUrl`](https://invent.kde.org/frameworks/kconfigwidgets/-/blob/master/src/krecentfilesaction.cpp#L177) > [`KRecentFilesAction::removeUrl`](https://invent.kde.org/frameworks/kconfigwidgets/-/blob/master/src/krecentfilesaction.cpp#L232) > [`KRecentFilesActionPrivate::removeAction`](https://invent.kde.org/frameworks/kconfigwidgets/-/blob/master/src/krecentfilesaction.cpp#L103)) can cause the iterator used when emitting that signal to become invalid. M +2 -1 src/krecentfilesaction.cpp https://invent.kde.org/frameworks/kconfigwidgets/commit/5aaf0c3e021c9a48b425a0b02212eb699d532177 |