Fixed a few platform related issues. 5_1_x

Fri, 16 Sep 2011 19:39:03 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 16 Sep 2011 19:39:03 +0200
branch
5_1_x
changeset 1331
5dd594d4466f
parent 1328
deda60e0670a
child 1334
e6cbd342862d

Fixed a few platform related issues.
(transplanted from da34ee6d1d30a38ee92592df405530a6e3569930)

Project/AddDirectoryDialog.py file | annotate | diff | comparison | revisions
Project/AddFileDialog.py file | annotate | diff | comparison | revisions
--- a/Project/AddDirectoryDialog.py	Fri Sep 16 19:34:07 2011 +0200
+++ b/Project/AddDirectoryDialog.py	Fri Sep 16 19:39:03 2011 +0200
@@ -139,6 +139,7 @@
         """
         filetype = \
             self.filterComboBox.itemData(self.filterComboBox.currentIndex())
-        return (filetype, self.sourceDirEdit.text(), 
-            self.targetDirEdit.text(),
+        return (filetype,
+            Utilities.toNativeSeparators(self.sourceDirEdit.text()),
+            Utilities.toNativeSeparators(self.targetDirEdit.text()),
             self.recursiveCheckBox.isChecked())
--- a/Project/AddFileDialog.py	Fri Sep 16 19:34:07 2011 +0200
+++ b/Project/AddFileDialog.py	Fri Sep 16 19:39:03 2011 +0200
@@ -181,5 +181,7 @@
             source files, the target directory and a flag telling, whether
             the files shall be added as source code
         """
-        return (self.sourceFileEdit.text().split(os.pathsep), 
-            self.targetDirEdit.text(), self.sourcecodeCheckBox.isChecked())
+        return (
+            Utilities.toNativeSeparators(self.sourceFileEdit.text().split(os.pathsep)),
+            Utilities.toNativeSeparators(self.targetDirEdit.text()),
+            self.sourcecodeCheckBox.isChecked())

eric ide

mercurial