Fixed a little issue in the project reader. 5_2_x

Sat, 14 Apr 2012 12:03:10 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 14 Apr 2012 12:03:10 +0200
branch
5_2_x
changeset 1787
01e2b040d2ba
parent 1784
f74f03e98128
child 1788
6cde0ffb2667

Fixed a little issue in the project reader.

Project/Project.py file | annotate | diff | comparison | revisions
--- a/Project/Project.py	Thu Apr 12 19:18:23 2012 +0200
+++ b/Project/Project.py	Sat Apr 14 12:03:10 2012 +0200
@@ -660,7 +660,8 @@
             # create hash value, if it doesn't have one
             if not self.pdata["HASH"][0]:
                 hash = str(QCryptographicHash.hash(
-                    QByteArray(self.ppath), QCryptographicHash.Sha1).toHex(),
+                    QByteArray(self.ppath.encode("utf-8")),
+                    QCryptographicHash.Sha1).toHex(),
                     encoding="utf-8")
                 self.pdata["HASH"] = [hash]
                 self.setDirty(True)

eric ide

mercurial