Fix error dialog not showing when mouse is not grabbed?

This commit is contained in:
David Vierra 2016-03-18 13:59:46 -10:00
parent 6055a4d35c
commit 3c21b8544e

View File

@ -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_()