From a3a62a6912d7555c5142a5ede23e828b1bd16a47 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 2 Apr 2023 05:04:18 +0200 Subject: [PATCH] AFC and Demod Analyzer: fixed message queue disconnect. Fixes #1634 --- plugins/feature/afc/afc.cpp | 4 ++-- plugins/feature/demodanalyzer/demodanalyzer.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/feature/afc/afc.cpp b/plugins/feature/afc/afc.cpp index 3cc0ea8b7..d4fa20134 100644 --- a/plugins/feature/afc/afc.cpp +++ b/plugins/feature/afc/afc.cpp @@ -732,7 +732,7 @@ void AFC::removeTrackerFeatureReference() MessageQueue *messageQueue = qobject_cast(pipe->m_element); if (messageQueue) { - disconnect(messageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleChannelMessageQueue(MessageQueue*))); + disconnect(messageQueue, &MessageQueue::messageEnqueued, this, nullptr); // Have to use nullptr, as slot is a lambda. } } @@ -751,7 +751,7 @@ void AFC::removeTrackedFeatureReferences() MessageQueue *messageQueue = qobject_cast(pipe->m_element); if (messageQueue) { - disconnect(messageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleChannelMessageQueue(MessageQueue*))); + disconnect(messageQueue, &MessageQueue::messageEnqueued, this, nullptr); // Have to use nullptr, as slot is a lambda. } } diff --git a/plugins/feature/demodanalyzer/demodanalyzer.cpp b/plugins/feature/demodanalyzer/demodanalyzer.cpp index 11bdc0564..028838bbc 100644 --- a/plugins/feature/demodanalyzer/demodanalyzer.cpp +++ b/plugins/feature/demodanalyzer/demodanalyzer.cpp @@ -380,7 +380,7 @@ void DemodAnalyzer::setChannel(ChannelAPI *selectedChannel) MessageQueue *messageQueue = qobject_cast(messagePipe->m_element); if (messageQueue) { - disconnect(messageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleChannelMessageQueue(MessageQueue*))); + disconnect(messageQueue, &MessageQueue::messageEnqueued, this, nullptr); // Have to use nullptr, as slot is a lambda. } } }