Commit 89696feb authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #279 from diydrones/toolbar_link_fix

Fix for crash involving serial links not being removed from QGCToolBar
parents 91d34fc1 d906374a
......@@ -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) {
......
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