Fixed T+ not updating in the list of flight shown in the mission planner.

This commit is contained in:
Khopa 2020-08-20 14:22:10 +02:00
parent b38f6c39e4
commit 45af66e000
2 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,7 @@ class QMissionPlanning(QDialog):
self.planned_flight_view.repaint() self.planned_flight_view.repaint()
if self.flight_planner is not None: if self.flight_planner is not None:
self.flight_planner.on_planned_flight_changed.disconnect()
self.flight_planner.clearTabs() self.flight_planner.clearTabs()
try: try:

View File

@ -23,6 +23,7 @@ class QPlannedFlightsView(QListView):
self.flightitems[i].update(f) self.flightitems[i].update(f)
def setup_content(self, row=0): def setup_content(self, row=0):
self.flightitems = []
for i, f in enumerate(self.flight_planner.flights): for i, f in enumerate(self.flight_planner.flights):
item = QFlightItem(f) item = QFlightItem(f)
self.model.appendRow(item) self.model.appendRow(item)