Don't show the Congratulation message until the project is really created :)
[bertos.git] / wizard / BFinalPage.py
index 459c486418a0df4e47e59953a11b0c482779833e..020b5a58a61ed7eb3b6b1a42c49508c792a76d9b 100644 (file)
@@ -54,6 +54,7 @@ class BFinalPage(BWizardPage):
     ## Overloaded BWizardPage methods ##
         
     def reloadData(self):
+        self.setVisible(False)
         """
         Overload of the BWizardPage reloadData method.
         """
@@ -67,11 +68,12 @@ class BFinalPage(BWizardPage):
                 QMessageBox.critical(
                     self,
                     self.tr("Error removing destination directory"),
-                    self.tr("Error removing the destination directory. This directory or a file in it is in use by another user or application.\nClose the application that is using the directory and retry."))
+                    self.tr("Error removing the destination directory. This directory or a file in it is in use by another user or application.\nClose the application which is using the directory and retry."))
                 self.wizard().back()
                 return
         finally:
             QApplication.instance().restoreOverrideCursor()
+        self.setVisible(True)
         self._plugin_dict = {}
         if os.name == "nt":
             output = self.projectInfo("OUTPUT")