Use the directory written in the lineedit as base directory for the file dialog
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Apr 2009 16:54:52 +0000 (16:54 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Apr 2009 16:54:52 +0000 (16:54 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2590 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BFolderPage.py

index 187557db00b1bbe318f73276ac29ee2ff9a40d97..0539c62b5f5ba137e420dbb0b0fabeeda2d3fffb 100644 (file)
@@ -81,7 +81,7 @@ class BFolderPage(BWizardPage):
         """
         Slot called when the project folder is changed using the file dialog.
         """
-        directory = unicode(QFileDialog.getExistingDirectory(self, self.tr("Open Directory"), "", QFileDialog.ShowDirsOnly))
+        directory = unicode(QFileDialog.getExistingDirectory(self, self.tr("Open Directory"), self.pageContent.directoryEdit.text(), QFileDialog.ShowDirsOnly))
         if len(directory) > 0:
             self.pageContent.directoryEdit.setText(directory)