Skip to content

TerminalPanel: Disconnect destroyed signal in destructor

Kai Uwe Broulik requested to merge work/kbroulik/terminal-crash-exit-fix into kf6

Otherwise, when QObject cleanup, which runs after our destructor, destroys the terminalPart, it would call back into us when we're already half-destroyed.

This trips an assert in Qt "Called object is not of the correct type (class destructor may have already run)"


The assert was added in Qt 6.3.

Edited by Kai Uwe Broulik

Merge request reports