mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Focus on the exception window (#2282)
This commit is contained in:
parent
8c2c353071
commit
def611ef89
@ -33,7 +33,7 @@ class UncaughtExceptionHandler(QObject):
|
||||
def show_exception_box(self, message: str, exception: str) -> None:
|
||||
if QApplication.instance() is not None:
|
||||
QMessageBox().critical(
|
||||
self.parent(),
|
||||
QApplication.focusWidget(),
|
||||
"An unexpected error occurred",
|
||||
"\n".join([message, "", exception]),
|
||||
QMessageBox.Ok,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user