diff --git a/src/ui/DebugConsole.cc b/src/ui/DebugConsole.cc index c5fd00298976e97b3a412aca086b068bae18cfa5..034809e5495a313604fde6fc9b1c1eea99bd5b97 100644 --- a/src/ui/DebugConsole.cc +++ b/src/ui/DebugConsole.cc @@ -183,7 +183,7 @@ void DebugConsole::addLink(LinkInterface* link) // Register for name changes connect(link, SIGNAL(nameChanged(QString)), this, SLOT(updateLinkName(QString)), Qt::UniqueConnection); - connect(link, SIGNAL(linkDeleted(LinkInterface* const)), this, SLOT(removeLink(LinkInterface* const)), Qt::UniqueConnection); + connect(LinkManager::instance(), &LinkManager::linkDeleted, this, &DebugConsole::removeLink, Qt::UniqueConnection); } void DebugConsole::removeLink(LinkInterface* const linkInterface) diff --git a/src/ui/DebugConsole.h b/src/ui/DebugConsole.h index 53d1ffccd926c3323668b7a7afdbd996eb315e0e..0cd4592d1bb3df7d01d3a224ef2218bfda70d611 100644 --- a/src/ui/DebugConsole.h +++ b/src/ui/DebugConsole.h @@ -66,7 +66,7 @@ public slots: /** @brief Add a UAS to the list of monitored UAS */ void uasCreated(UASInterface* uas); /** @brief Remove a link from the list */ - void removeLink(LinkInterface* const link); + void removeLink(LinkInterface* link); /** @brief Update a link name */ void updateLinkName(QString name); /** @brief Select a link for the active view */