Draft: Fixed encoding in importDXF message - issue #3019

This commit is contained in:
Yorik van Havre
2017-05-08 10:51:04 -03:00
parent bb12ce3474
commit 8f7e3c628f

View File

@@ -110,7 +110,9 @@ Please either enable FreeCAD to download these libraries:
Or download these libraries manually, as explained on
https://github.com/yorikvanhavre/Draft-dxf-importer
To enabled FreeCAD to download these libraries, answer Yes.""")
reply = QtGui.QMessageBox.question(None,"",message.decode('utf8'),
if not isinstance(message,unicode):
message = message.decode('utf8')
reply = QtGui.QMessageBox.question(None,"",message,
QtGui.QMessageBox.Yes | QtGui.QMessageBox.No, QtGui.QMessageBox.No)
if reply == QtGui.QMessageBox.Yes:
p.SetBool("dxfAllowDownload",True)