mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix error on shutdown
Mentioned by NoGoodNews as well as Starfire, once you open the logs an error would present itself as follows: RuntimeError: The SignalInstance object was already deleted
This commit is contained in:
parent
3e373b706f
commit
4c13704630
@ -543,7 +543,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
LAYOUTS.import_templates()
|
LAYOUTS.import_templates()
|
||||||
|
|
||||||
def showLogsDialog(self):
|
def showLogsDialog(self):
|
||||||
self.dialog = QLogsWindow()
|
self.dialog = QLogsWindow(self)
|
||||||
self.dialog.show()
|
self.dialog.show()
|
||||||
|
|
||||||
def onDebriefing(self, debrief: Debriefing):
|
def onDebriefing(self, debrief: Debriefing):
|
||||||
|
|||||||
@ -8,6 +8,7 @@ from PySide6.QtWidgets import (
|
|||||||
QPlainTextEdit,
|
QPlainTextEdit,
|
||||||
QVBoxLayout,
|
QVBoxLayout,
|
||||||
QPushButton,
|
QPushButton,
|
||||||
|
QWidget,
|
||||||
)
|
)
|
||||||
|
|
||||||
from qt_ui.logging_handler import HookableInMemoryHandler
|
from qt_ui.logging_handler import HookableInMemoryHandler
|
||||||
@ -21,8 +22,8 @@ class QLogsWindow(QDialog):
|
|||||||
clear_button: QPushButton
|
clear_button: QPushButton
|
||||||
_logging_handler: typing.Optional[HookableInMemoryHandler]
|
_logging_handler: typing.Optional[HookableInMemoryHandler]
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, parent: QWidget):
|
||||||
super().__init__()
|
super().__init__(parent)
|
||||||
|
|
||||||
self.setWindowTitle("Logs")
|
self.setWindowTitle("Logs")
|
||||||
self.setMinimumSize(400, 100)
|
self.setMinimumSize(400, 100)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user