X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBFolderPage.py;h=ba79b4a9edade3dc1451f073c6a846140c9daf1e;hb=a3f8182f09904311ccd71676d8a348900774c74c;hp=a14dda2f5d000e8c358b77d5904d2a29ad5fc853;hpb=320721d8b6cab26650cbd91a4accb61f66ff0e62;p=bertos.git
diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py
index a14dda2f..ba79b4a9 100644
--- a/wizard/BFolderPage.py
+++ b/wizard/BFolderPage.py
@@ -54,7 +54,8 @@ class BFolderPage(BWizardPage):
self.pageContent.projectPath.setText(self._destinationFolder + self._projectName)
if os.path.exists(self._destinationFolder + self._projectName):
self.pageContent.warningLabel.setVisible(True)
- self.pageContent.warningLabel.setText(self.tr("Warning: the selected directory exists, it will be destroyed with all contained subdirectories and files..."))
+ self.pageContent.warningLabel.setText(self.tr("Warning: the selected directory exists, \
+ it will be destroyed with all contained subdirectories and files..."))
else:
self.pageContent.warningLabel.setVisible(False)
self.pageContent.warningLabel.setText("")
@@ -66,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):