Use toNativeSeparators method when the user select a directory with the native select...
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 25 Apr 2009 07:24:20 +0000 (07:24 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 25 Apr 2009 07:24:20 +0000 (07:24 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2668 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BFolderPage.py

index b6038ae31b6b37e2e6a9e9e2965c49f0ee9e5f19..b0f71db882d63aa72d806aa1a2d5574b31c463c6 100644 (file)
@@ -112,7 +112,7 @@ class BFolderPage(BWizardPage):
         """
         directory = unicode(QFileDialog.getExistingDirectory(self, self.tr("Open Directory"), self.pageContent.directoryEdit.text(), QFileDialog.ShowDirsOnly))
         if len(directory) > 0:
-            self.pageContent.directoryEdit.setText(directory)
+            self.pageContent.directoryEdit.setText(QDir.toNativeSeparators(directory))
 
     ####