Commit efeccf93 authored by Don Gagne's avatar Don Gagne

Use new LinkManager::deleteLink api

parent 98771561
......@@ -327,10 +327,8 @@ bool QGCMAVLinkLogPlayer::loadLogFile(const QString& file)
// If there's an existing MAVLinkSimulationLink() being used for an old file,
// we replace it.
if (logLink)
{
LinkManager::instance()->disconnectLink(logLink);
logLink->deleteLater();
if (logLink) {
LinkManager::instance()->deleteLink(logLink);
}
logLink = new MAVLinkSimulationLink("");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment