From d906374afd62281f11bf1ebf3818a6437dcbf692 Mon Sep 17 00:00:00 2001 From: Michael Carpenter Date: Thu, 30 May 2013 13:09:16 -0400 Subject: [PATCH] Fix for crash involving serial links not being removed from QGCToolBar properly. --- src/ui/QGCToolBar.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/QGCToolBar.cc b/src/ui/QGCToolBar.cc index c2bdac1e6..c5d3be21f 100644 --- a/src/ui/QGCToolBar.cc +++ b/src/ui/QGCToolBar.cc @@ -177,6 +177,7 @@ void QGCToolBar::createUI() addLink(LinkManager::instance()->getLinks().last()); // XXX implies that connect button is always active for the last used link connect(LinkManager::instance(), SIGNAL(newLink(LinkInterface*)), this, SLOT(addLink(LinkInterface*))); + connect(LinkManager::instance(), SIGNAL(linkRemoved(LinkInterface*)), this, SLOT(removeLink(LinkInterface*))); // Update label if required if (LinkManager::instance()->getLinks().count() < 3) { -- 2.22.0