mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix planned flights view, stop hiding bugs.
This commit is contained in:
parent
85f6616185
commit
aa7ffdabb0
@ -19,16 +19,12 @@ class QAirfieldCommand(QFrame):
|
||||
layout = QGridLayout()
|
||||
layout.addWidget(QAircraftRecruitmentMenu(self.cp, self.game_model), 0, 0)
|
||||
|
||||
try:
|
||||
planned = QGroupBox("Planned Flights")
|
||||
planned_layout = QVBoxLayout()
|
||||
planned_layout.addWidget(
|
||||
QPlannedFlightsView(self.game_model, self.cp)
|
||||
)
|
||||
planned.setLayout(planned_layout)
|
||||
layout.addWidget(planned, 0, 1)
|
||||
except:
|
||||
pass
|
||||
planned = QGroupBox("Planned Flights")
|
||||
planned_layout = QVBoxLayout()
|
||||
planned_layout.addWidget(
|
||||
QPlannedFlightsView(self.game_model, self.cp)
|
||||
)
|
||||
planned.setLayout(planned_layout)
|
||||
layout.addWidget(planned, 0, 1)
|
||||
|
||||
#layout.addWidget(QAirportInformation(self.cp, self.game.theater.terrain.airport_by_id(self.cp.id)), 0, 2)
|
||||
self.setLayout(layout)
|
||||
|
||||
@ -25,7 +25,7 @@ class QPlannedFlightsView(QListView):
|
||||
for package in self.game_model.ato_model.packages:
|
||||
for flight in package.flights:
|
||||
if flight.from_cp == self.cp:
|
||||
item = QFlightItem(flight)
|
||||
item = QFlightItem(package.package, flight)
|
||||
self.model.appendRow(item)
|
||||
self.flight_items.append(item)
|
||||
self.set_selected_flight(0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user