diff --git a/src/ui/HSIDisplay.cc b/src/ui/HSIDisplay.cc index d7a203ccc0386e7cfb2d2c5bfd3ca77b309d10f9..2b7da31cd97b867ae1e1d3c4aaba84701102f6f6 100644 --- a/src/ui/HSIDisplay.cc +++ b/src/ui/HSIDisplay.cc @@ -678,7 +678,7 @@ void HSIDisplay::drawWaypoints(QPainter& painter) { if (uas) { - const QVector& list = uas->getWaypointManager().getWaypointList(); + const QVector& list = uas->getWaypointManager()->getWaypointList(); // for (int i = 0; i < list.size(); i++) // { // QPointF in(list.at(i)->getX(), list.at(i)->getY()); diff --git a/src/ui/uas/UASView.cc b/src/ui/uas/UASView.cc index c387583c0b6ae6f7d2112d0037d6e05f04dfbbc6..3a3f0d7d8ce5daf7aeff5cfabc92ab4061ab0f32 100644 --- a/src/ui/uas/UASView.cc +++ b/src/ui/uas/UASView.cc @@ -83,7 +83,7 @@ UASView::UASView(UASInterface* uas, QWidget *parent) : connect(uas, SIGNAL(loadChanged(UASInterface*, double)), this, SLOT(updateLoad(UASInterface*, double))); connect(uas, SIGNAL(heartbeatTimeout()), this, SLOT(heartbeatTimeout())); connect(uas, SIGNAL(waypointSelected(int,int)), this, SLOT(selectWaypoint(int,int))); - connect(&(uas->getWaypointManager()), SIGNAL(currentWaypointChanged(quint16)), this, SLOT(currentWaypointUpdated(quint16))); + connect(uas->getWaypointManager(), SIGNAL(currentWaypointChanged(quint16)), this, SLOT(currentWaypointUpdated(quint16))); connect(uas, SIGNAL(systemTypeSet(UASInterface*,uint)), this, SLOT(setSystemType(UASInterface*,uint))); connect(UASManager::instance(), SIGNAL(activeUASStatusChanged(UASInterface*,bool)), this, SLOT(updateActiveUAS(UASInterface*,bool)));