Home GnuPG

Fix crash in debug dialog

Description

Fix crash in debug dialog

When running a command that doesn't terminate (e.g., "gpg") and closing the window, the process for the command
is killed, causing QProcess::errorOccurred to be emitted. We're connecting to this signal to change UI elements, which
have already been deleted at this point. This patch fixes that by changing the connections to have the UI components as receiver,
which makes them disconnect when the objects are destroyed

(cherry picked from commit de346048d83a4280fdeb76f330eb8fedbbd90536)

Details

Provenance
TobiasFellaAuthored on Nov 11 2024, 3:33 PM
ikloeckerCommitted on Nov 12 2024, 1:19 PM
Parents
rKLEOPATRA0ae32b1f49db: Close standard input for debug commands
Branches
Unknown
Tags
Unknown
Tasks
T7331: Kleopatra: Improvements for debug dialog