From: duplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Date: Tue, 21 Apr 2009 08:30:12 +0000 (+0000)
Subject: Add support for toolchains stored in the windows registry
X-Git-Tag: 2.1.0~88
X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4756aabbd1c7b16e31c9814b8e7f1586dfd3bf22;p=bertos.git

Add support for toolchains stored in the windows registry

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2594 38d2e660-2303-0410-9eaa-f027e97ec537
---

diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py
index 2587cf20..c012a200 100644
--- a/wizard/BToolchainPage.py
+++ b/wizard/BToolchainPage.py
@@ -136,6 +136,11 @@ class BToolchainPage(BWizardPage):
         Fills the toolchain list with the toolchains stored in the QSettings.
         """
         toolchains = self.toolchains()
+        if os.name == "nt":
+            import winreg_importer
+            stored_toolchains = winreg_importer.getBertosToolchains()
+            for toolchain in stored_toolchains:
+                toolchains[toolchain] = True
         sel_toolchain = self.projectInfo("TOOLCHAIN")
         for key, value in toolchains.items():
             item = QListWidgetItem(key)