Fix error dialog not showing when mouse is not grabbed?
This commit is contained in:
parent
6055a4d35c
commit
3c21b8544e
@ -23,7 +23,8 @@ def showErrorDialog(text, tb, fatal):
|
|||||||
global _errorShown
|
global _errorShown
|
||||||
_errorShown = True
|
_errorShown = True
|
||||||
grabber = QtGui.QWidget.mouseGrabber()
|
grabber = QtGui.QWidget.mouseGrabber()
|
||||||
grabber.releaseMouse()
|
if grabber:
|
||||||
|
grabber.releaseMouse()
|
||||||
|
|
||||||
dialog = ErrorDialog(text, tb, fatal)
|
dialog = ErrorDialog(text, tb, fatal)
|
||||||
dialog.exec_()
|
dialog.exec_()
|
||||||
|
Reference in New Issue
Block a user