Commit e24d2ada authored by Bill Bonney's avatar Bill Bonney

Fixed APM Tool Bar not being populated with link info when switching perspectives

parent 359f8bd1
......@@ -14,9 +14,12 @@ APMToolBar::APMToolBar(QWidget *parent):
setSource(QUrl::fromLocalFile("qml/ApmToolBar.qml"));
setResizeMode(QDeclarativeView::SizeRootObjectToView);
QObject *root = rootObject();
connect(LinkManager::instance(),SIGNAL(newLink(LinkInterface*)),
this, SLOT(updateLinkDisplay(LinkInterface*)));
if (LinkManager::instance()->getLinks().count()>=3) {
updateLinkDisplay(LinkManager::instance()->getLinks().last());
}
}
void APMToolBar::setFlightViewAction(QAction *action)
......
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