1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

AFC and Demod Analyzer: fixed message queue disconnect. Fixes #1634

This commit is contained in:
f4exb 2023-04-02 05:04:18 +02:00
parent 084fd7b0e9
commit a3a62a6912
2 changed files with 3 additions and 3 deletions

View File

@ -732,7 +732,7 @@ void AFC::removeTrackerFeatureReference()
MessageQueue *messageQueue = qobject_cast<MessageQueue*>(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<MessageQueue*>(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.
}
}

View File

@ -380,7 +380,7 @@ void DemodAnalyzer::setChannel(ChannelAPI *selectedChannel)
MessageQueue *messageQueue = qobject_cast<MessageQueue*>(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.
}
}
}