Fix crash if log window is open when entering mission.

Use signal to append text to LogWindow to avoid crash from crossing thread boundaries.
Change modal flag to enable interacting with LogWindow while the mission is running

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1493
This commit is contained in:
Johan Aberg
2021-10-20 13:04:16 +13:00
committed by GitHub
parent 551ea728fc
commit 17011820de
4 changed files with 26 additions and 9 deletions

View File

@@ -287,8 +287,8 @@ class QTopPanel(QFrame):
)
unit_map = self.game.initiate_event(game_event)
waiting = QWaitingForMissionResultWindow(game_event, self.game, unit_map)
waiting.show()
waiting = QWaitingForMissionResultWindow(game_event, self.game, unit_map, self)
waiting.exec_()
def budget_update(self, game: Game):
self.budgetBox.setGame(game)