From e7908d741f56fe5c5f0b5da7eb5aa3faee9c5278 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 30 Nov 2014 19:39:16 -0800 Subject: [PATCH] Fix broken connect --- src/ui/DebugConsole.cc | 2 +- src/ui/DebugConsole.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/DebugConsole.cc b/src/ui/DebugConsole.cc index c5fd00298..034809e54 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 53d1ffccd..0cd4592d1 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 */ -- 2.22.0