mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Run crash dialog on Qt thread so the GUI gets updated correctly
CURA-4195
This commit is contained in:
parent
396d960f4a
commit
44d5323779
1 changed files with 7 additions and 2 deletions
|
@ -15,8 +15,9 @@ import urllib.request
|
|||
import urllib.error
|
||||
|
||||
from PyQt5.QtCore import QT_VERSION_STR, PYQT_VERSION_STR, QCoreApplication
|
||||
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTextEdit, QGroupBox, QPushButton
|
||||
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTextEdit, QGroupBox
|
||||
|
||||
from UM.Application import Application
|
||||
from UM.Logger import Logger
|
||||
from UM.View.GL.OpenGL import OpenGL
|
||||
from UM.i18n import i18nCatalog
|
||||
|
@ -275,5 +276,9 @@ class CrashHandler:
|
|||
os._exit(1)
|
||||
|
||||
def show(self):
|
||||
# must run the GUI code on the Qt thread, otherwise the widgets on the dialog won't react correctly.
|
||||
Application.getInstance().callLater(self._show)
|
||||
|
||||
def _show(self):
|
||||
self.dialog.exec_()
|
||||
os._exit(1)
|
||||
os._exit(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue