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) ...@@ -327,10 +327,8 @@ bool QGCMAVLinkLogPlayer::loadLogFile(const QString& file)
// If there's an existing MAVLinkSimulationLink() being used for an old file, // If there's an existing MAVLinkSimulationLink() being used for an old file,
// we replace it. // we replace it.
if (logLink) if (logLink) {
{ LinkManager::instance()->deleteLink(logLink);
LinkManager::instance()->disconnectLink(logLink);
logLink->deleteLater();
} }
logLink = new MAVLinkSimulationLink(""); 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