Fixed issues caused by using EricPathPicker.paths() method. eric7

Wed, 20 Jul 2022 17:26:23 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 20 Jul 2022 17:26:23 +0200
branch
eric7
changeset 9256
67603066f0a6
parent 9255
79ec5473519d
child 9257
38d5e4603cbb

Fixed issues caused by using EricPathPicker.paths() method.

src/eric7/HelpViewer/HelpBookmarksImportDialog.py file | annotate | diff | comparison | revisions
src/eric7/Project/AddFileDialog.py file | annotate | diff | comparison | revisions
--- a/src/eric7/HelpViewer/HelpBookmarksImportDialog.py	Wed Jul 20 16:18:24 2022 +0200
+++ b/src/eric7/HelpViewer/HelpBookmarksImportDialog.py	Wed Jul 20 17:26:23 2022 +0200
@@ -60,5 +60,5 @@
         """
         return (
             self.replaceCheckBox.isChecked(),
-            self.bookmarksPicker.path(),
+            self.bookmarksPicker.text(),
         )
--- a/src/eric7/Project/AddFileDialog.py	Wed Jul 20 16:18:24 2022 +0200
+++ b/src/eric7/Project/AddFileDialog.py	Wed Jul 20 17:26:23 2022 +0200
@@ -160,7 +160,7 @@
 
         @param sfile the text of the source file picker (string)
         """
-        sfile = self.sourceFilesPicker.firstPath()
+        sfile = str(self.sourceFilesPicker.firstPath())
         if sfile.startswith(self.ppath):
             if os.path.isdir(sfile):
                 directory = sfile
@@ -177,7 +177,7 @@
             telling, whether the files shall be added as source code
         """
         return (
-            self.sourceFilesPicker.paths(),
+            [str(p) for p in self.sourceFilesPicker.paths()],
             self.targetDirPicker.text(),
             self.sourcecodeCheckBox.isChecked(),
         )

eric ide

mercurial