Correct distraction error
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Feb 2009 10:25:15 +0000 (10:25 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Feb 2009 10:25:15 +0000 (10:25 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2386 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BToolchainPage.py

index a12a82a124fae23236b132aae6d9a65fe6e3519a..8a1edc1e43ddc8d0f9aa4bd9d6789868ae3bb87d 100644 (file)
@@ -45,7 +45,7 @@ class BToolchainPage(BWizardPage):
         self.pageContent.toolchainList.clear()
     
     def _selectionChanged(self):
-        if self.pageContent.toolchainList.currentIndex != -1:
+        if self.pageContent.toolchainList.currentRow() != -1:
             infos = collections.defaultdict(lambda: unicode("not defined"))
             infos.update(qvariant_converter.getStringDict(self.pageContent.toolchainList.currentItem().data(Qt.UserRole)))
             self.pageContent.infoLabel.setText("GCC " + infos["version"] + " (" + infos["build"] + ")\nTarget: " + infos["target"] + "\nPath: " + os.path.normpath(infos["path"]))