Browse Source

Fix for bug where displaying WaypointList after adding offline waypoints resulted in an empty waypoint list, until the next waypoint was manually added

QGC4.4
Michael Carpenter 12 years ago
parent
commit
69982e2856
  1. 5
      src/ui/WaypointList.cc

5
src/ui/WaypointList.cc

@ -122,6 +122,11 @@ WaypointList::WaypointList(QWidget *parent, UASWaypointManager* wpm) : @@ -122,6 +122,11 @@ WaypointList::WaypointList(QWidget *parent, UASWaypointManager* wpm) :
connect(WPM, SIGNAL(waypointViewOnlyListChanged(void)), this, SLOT(waypointViewOnlyListChanged(void)));
connect(WPM, SIGNAL(waypointViewOnlyChanged(int,Waypoint*)), this, SLOT(updateWaypointViewOnly(int,Waypoint*)));
connect(WPM, SIGNAL(currentWaypointChanged(quint16)), this, SLOT(currentWaypointViewOnlyChanged(quint16)));
//Even if there are no waypoints, since this is a new instance and there is an
//existing WPM, then we need to assume things have changed, and act appropriatly.
waypointEditableListChanged();
waypointViewOnlyListChanged();
}
// STATUS LABEL

Loading…
Cancel
Save