X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=wizard%2FBRoutePage.py;h=d8e6d3707e38512d7ce7ffb6562e1766b3c74edd;hb=210d3a59a53817287e38abc6c82c739d107687a9;hp=b34f790050986e74fab5d39588993afa6c341478;hpb=106d1edb5fc1984143fa299009ef823bd21ee6c5;p=bertos.git diff --git a/wizard/BRoutePage.py b/wizard/BRoutePage.py index b34f7900..d8e6d370 100644 --- a/wizard/BRoutePage.py +++ b/wizard/BRoutePage.py @@ -78,18 +78,19 @@ class BRoutePage(BWizardPage): cpu_info = self.projectInfo("CPU_INFOS") if cpu_info: target = cpu_info["TOOLCHAIN"] + # Try to find a suitable toolchain automatically + tm = ToolchainManager() + suitable_toolchains = tm.suitableToolchains(target) + if len(suitable_toolchains) == 1: + return self.wizard().pageIndex(BOutputPage) + else: + return self.wizard().pageIndex(BToolchainPage) else: # It seems that the nextId method is called before the # reloadData one (that is called after the page changing. # # TODO: fix this awful code lines target = None - # Try to find a suitable toolchain automatically - tm = ToolchainManager() - suitable_toolchains = tm.suitableToolchains(target) - if len(suitable_toolchains) == 1: - return self.wizard().pageIndex(BOutputPage) - else: return self.wizard().pageIndex(BToolchainPage) ####