Selecting a directory with the chooser mask now works
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 3 Feb 2009 18:05:45 +0000 (18:05 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 3 Feb 2009 18:05:45 +0000 (18:05 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2255 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BFolderPage.py

index 956349ecf51f3a6b8e18af7e42006676207ceb17..ba79b4a9edade3dc1451f073c6a846140c9daf1e 100644 (file)
@@ -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):