From 770d1b02d7a11332268bf8bd46bce7c99b147441 Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 8 Sep 2009 09:13:37 +0000 Subject: [PATCH] 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 --- wizard/BEditingDialog.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.25.1