mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 16:08:39 -05:00
TestSource: use queued connection for connecting worker's deleteLater. Fixes possible crash on exit
This commit is contained in:
parent
46db55f1db
commit
fdce34204f
@ -690,7 +690,20 @@ void DemodAnalyzer::handleDataPipeToBeDeleted(int reason, QObject *object)
|
|||||||
m_worker->getInputMessageQueue()->push(msg);
|
m_worker->getInputMessageQueue()->push(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateChannels();
|
m_availableChannels.remove((ChannelAPI*) object);
|
||||||
m_selectedChannel = nullptr;
|
m_selectedChannel = nullptr;
|
||||||
|
|
||||||
|
if (getMessageQueueToGUI())
|
||||||
|
{
|
||||||
|
MsgReportChannels *msgToGUI = MsgReportChannels::create();
|
||||||
|
QList<DemodAnalyzerSettings::AvailableChannel>& msgAvailableChannels = msgToGUI->getAvailableChannels();
|
||||||
|
QHash<ChannelAPI*, DemodAnalyzerSettings::AvailableChannel>::iterator it = m_availableChannels.begin();
|
||||||
|
|
||||||
|
for (; it != m_availableChannels.end(); ++it) {
|
||||||
|
msgAvailableChannels.push_back(*it);
|
||||||
|
}
|
||||||
|
|
||||||
|
getMessageQueueToGUI()->push(msgToGUI);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user