From fc42795018917112d268835ca4d624705e92a6df Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 8 Sep 2009 08:52:42 +0000 Subject: [PATCH] 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 --- wizard/BEditingDialog.py | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- 2.25.1