Skip to content

Commit

Permalink
Draft: Fixed encoding in importDXF message - issue #3019
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed May 8, 2017
1 parent 4355b28 commit 73f2307
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mod/Draft/importDXF.py
Expand Up @@ -110,7 +110,9 @@ def errorDXFLib(gui):
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)
Expand Down

0 comments on commit 73f2307

Please sign in to comment.