Select the element in the toolchain list and manually reload the information. TODO...
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 8 Sep 2009 08:52:42 +0000 (08:52 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 8 Sep 2009 08:52:42 +0000 (08:52 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2896 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BEditingDialog.py

index d7cea5277e926d82912cb5a2e21233b07afbaf45..773aadf767739249dd14b68760d5e72658f63df7 100644 (file)
@@ -91,7 +91,14 @@ class BEditingDialog(QDialog):
         dialog = QDialog()
         layout = QVBoxLayout()
         toolchain_page = BToolchainPage()
+       current_toolchain = toolchain_page.projectInfo("TOOLCHAIN")
         toolchain_page.reloadData()
+       for toolchain_row in range(toolchain_page.pageContent.toolchainList.count()):
+            toolchain = qvariant_converter.getStringDict(toolchain_page.pageContent.toolchainList.item(toolchain_row).data(Qt.UserRole))
+           if toolchain["path"] == current_toolchain["path"]:
+                toolchain_page.pageContent.toolchainList.setCurrentRow(toolchain_row)
+               toolchain_page.selectionChanged()
+               break
         layout.addWidget(toolchain_page)
         button_layout = QHBoxLayout()
         button_layout.addStretch()