From: duplo Date: Mon, 20 Apr 2009 16:54:52 +0000 (+0000) Subject: Use the directory written in the lineedit as base directory for the file dialog X-Git-Tag: 2.1.0~92 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=1fc71821dbce1d85a5d5227bd9e6580b573e8eba;p=bertos.git Use the directory written in the lineedit as base directory for the file dialog git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2590 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py index 187557db..0539c62b 100644 --- a/wizard/BFolderPage.py +++ b/wizard/BFolderPage.py @@ -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)