X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBFolderPage.py;h=0014a886056c0efa138bd630a85275de9fbe0ecb;hb=efc33d8c4107aa7e95b20c4728836df4171e17a9;hp=b0f71db882d63aa72d806aa1a2d5574b31c463c6;hpb=6dfcd7d3f0ba06e414d6062d09658b57f0383c69;p=bertos.git diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py index b0f71db8..0014a886 100644 --- a/wizard/BFolderPage.py +++ b/wizard/BFolderPage.py @@ -103,7 +103,12 @@ class BFolderPage(BWizardPage): """ Slot called when the project folder is changed manually by the user. """ - self._destination_folder = unicode(QDir.toNativeSeparators(directory)) + try: + directory = unicode(directory).encode("ascii") + except UnicodeEncodeError: + directory = self._destination_folder + self.pageContent.directoryEdit.setText(directory) + self._destination_folder = directory self.setProjectPath() def selectDirectory(self):