https://bugs.kde.org/show_bug.cgi?id=486283

Fabian Vogt <fab...@ritter-vogt.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/pim/
                   |                            |kmail/-/commit/ba6572b9b902
                   |                            |9a1431333bc52109011a4382ae0
                   |                            |2
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #3 from Fabian Vogt <fab...@ritter-vogt.de> ---
Git commit ba6572b9b9029a1431333bc52109011a4382ae02 by Fabian Vogt.
Committed on 19/07/2024 at 06:53.
Pushed by fvogt into branch 'master'.

Fix crash due to deleteLater() + nested event loop

KMEditItemCommand::execute creates a connection that does deleteLater(),
but also calls KMComposerWin::setMessage which creates a nested QEventLoop
in Kleo::KeyCache::Private::ensureCachePopulated. This nested event loop
thus deletes KMEditItemCommand within KMEditItemCommand::execute, causing
a crash.

Fix this by creating the connection for deleteLater as late as possible
and also call setDeletesItself(true) for good measure.

M  +6    -5    src/kmcommands.cpp

https://invent.kde.org/pim/kmail/-/commit/ba6572b9b9029a1431333bc52109011a4382ae02

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to