From: duplo Date: Tue, 8 Sep 2009 09:13:37 +0000 (+0000) Subject: Rollback to previous selected version if the user doesn't confirm the version change. X-Git-Tag: 2.2.0~70 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=770d1b02d7a11332268bf8bd46bce7c99b147441;p=bertos.git Rollback to previous selected version if the user doesn't confirm the version change. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2898 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BEditingDialog.py b/wizard/BEditingDialog.py index b3088bf7..617cebff 100644 --- a/wizard/BEditingDialog.py +++ b/wizard/BEditingDialog.py @@ -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)