Skip to content
Commit bd048e67 authored by Milian Wolff's avatar Milian Wolff
Browse files

Guard against crashes when IStatus object gets destroyed at bad times

When we connect to a signal using QueuedConnection and that signal
carries its context object as argument, then the signal may be
delivered after the object itself was deleted. This happened in the
cmakemanager test for example.

To prevent this, we don't use the QueueudConnection directly but
roll our own based on QTimer::singleShot(0, ...). This allows us
to capture the context object explicitly and then check that before
trying to access it.
parent 634c7b2d
Pipeline #4414 failed with stage
in 1 hour
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment