Rollback to previous selected version if the user doesn't confirm the version change.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 8 Sep 2009 09:13:37 +0000 (09:13 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 8 Sep 2009 09:13:37 +0000 (09:13 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2898 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BEditingDialog.py

index b3088bf743bcc4298b809b8ea4edbb8657648ae3..617cebff2b0c16a9b0f7dee080b7b955c2d2bda0 100644 (file)
@@ -160,6 +160,9 @@ class BEditingDialog(QDialog):
                     version_page.setProjectInfo("CONFIGURATIONS", merged_configuration)
                     bertos_utils.setEnabledModules(version_page.project(), enabled_modules)
                     self.module_page.fillModuleTree()
+               else:
+                   # Rollback version to the previous selected one.
+                   version_page.setProjectInfo("SOURCES_PATH", current_version)
 
     def apply(self):
         createBertosProject(self.module_page.project(), edit=True)