From: duplo Date: Tue, 8 Sep 2009 08:52:42 +0000 (+0000) Subject: Select the element in the toolchain list and manually reload the information. TODO... X-Git-Tag: 2.2.0~72 X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=fc42795018917112d268835ca4d624705e92a6df Select the element in the toolchain list and manually reload the information. TODO: implement a method that do this thing in the BToolchainPage class git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2896 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BEditingDialog.py b/wizard/BEditingDialog.py index d7cea527..773aadf7 100644 --- a/wizard/BEditingDialog.py +++ b/wizard/BEditingDialog.py @@ -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()