Merge pull request #1222 from campagnola/spw-fix

py3 fix for ScatterPlotWidget.setSelectedFields
This commit is contained in:
Ogi Moore 2020-06-01 19:16:43 -07:00 committed by GitHub
commit 0e62913b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ class ScatterPlotWidget(QtGui.QSplitter):
try:
self.fieldList.clearSelection()
for f in fields:
i = self.fields.keys().index(f)
i = list(self.fields.keys()).index(f)
item = self.fieldList.item(i)
item.setSelected(True)
finally: