Stop error dialog from displaying many times at once

This commit is contained in:
David Vierra 2016-01-31 22:40:43 -10:00
parent 5683804ab8
commit 49f4f70f74

View File

@ -16,10 +16,15 @@ from mcedit2.util.showprogress import MCEProgressDialog
log = logging.getLogger(__name__)
_errorShown = False
def showErrorDialog(text, tb, fatal):
global _errorShown
_errorShown = True
dialog = ErrorDialog(text, tb, fatal)
dialog.exec_()
_errorShown = False
class ErrorDialog(QtGui.QDialog, Ui_errorDialog):