From: duplo Date: Tue, 3 Feb 2009 18:05:45 +0000 (+0000) Subject: Selecting a directory with the chooser mask now works X-Git-Tag: 2.1.0~427 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6326db0b9d73cfe24428ab00bebfc021e66eef8d;p=bertos.git Selecting a directory with the chooser mask now works git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2255 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py index 956349ec..ba79b4a9 100644 --- a/wizard/BFolderPage.py +++ b/wizard/BFolderPage.py @@ -67,7 +67,7 @@ class BFolderPage(BWizardPage): def _selectDirectory(self): directory = unicode(QFileDialog.getExistingDirectory(self, self.tr("Open Directory"), "", QFileDialog.ShowDirsOnly)) - if len(directory) == "": + if len(directory) > 0: self.pageContent.directoryEdit.setText(directory) def isComplete(self):