From 7c704560b281fe36de054f811e44fe4cd53fa555 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sun, 12 Feb 2023 00:46:59 +0100 Subject: [PATCH] TorInfo: disconnect torManager on destruct --- src/dialog/TorInfoDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dialog/TorInfoDialog.cpp b/src/dialog/TorInfoDialog.cpp index b1f8823..569bb78 100644 --- a/src/dialog/TorInfoDialog.cpp +++ b/src/dialog/TorInfoDialog.cpp @@ -51,4 +51,6 @@ void TorInfoDialog::onStatusChanged(const QString &msg) { } } -TorInfoDialog::~TorInfoDialog() = default; \ No newline at end of file +TorInfoDialog::~TorInfoDialog() { + disconnect(torManager(), nullptr, this, nullptr); +} \ No newline at end of file