Remove the trailing separator.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Mar 2009 10:49:29 +0000 (10:49 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Mar 2009 10:49:29 +0000 (10:49 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2407 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BVersionPage.py

index bdd14cba72ba508de60302c5a80f34c8026d13ad..bd78fe01ebb02c139395ee40659943f98b9b41db 100644 (file)
@@ -64,8 +64,12 @@ class BVersionPage(BWizardPage):
 
     def isComplete(self):
         if self.pageContent.versionList.currentRow() != -1:
-            self._projectInfoStore("SOURCES_PATH", qvariant_converter.getString(self.pageContent.versionList.currentItem().data(Qt.UserRole)))
-            return True
+           # Remove trailing slash
+           sources_path = qvariant_converter.getString(self.pageContent.versionList.currentItem().data(Qt.UserRole))
+           if sources_path.endswith(os.sep):
+                 sources_path = sources_path[:-1]
+            self._projectInfoStore("SOURCES_PATH", sources_path)
+           return True
         else:
             return False
     
@@ -87,4 +91,4 @@ class BVersionPage(BWizardPage):
     
     def rowChanged(self):
         self.emit(SIGNAL("completeChanged()"))
-    
\ No newline at end of file
+