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

Remove star tracker items from map on close

This commit is contained in:
Jon Beniston 2023-02-16 14:30:14 +00:00
parent 8163dcb0ab
commit 40f560daec

View File

@ -76,9 +76,17 @@ void StarTrackerWorker::startWork()
void StarTrackerWorker::stopWork()
{
QMutexLocker mutexLocker(&m_mutex);
disconnect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
restartServer(false, 0);
m_pollTimer.stop();
disconnect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
if (m_settings.m_drawSunOnMap)
removeFromMap("Sun");
if (m_settings.m_drawMoonOnMap)
removeFromMap("Moon");
if (m_settings.m_drawStarOnMap && (m_settings.m_target != "Sun") && (m_settings.m_target != "Moon"))
removeFromMap("Star");
restartServer(false, 0);
}
void StarTrackerWorker::handleInputMessages()