Skip to content
Permalink
Browse files

[processing] fix issue wil multiple selection

  • Loading branch information
alexbruy committed Oct 29, 2013
1 parent e197b6f commit 2dce80b1c88e517caeb1a1a68db6c3258188d432
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/gui/MultipleInputDialog.py
@@ -64,15 +64,15 @@ def populateList(self):
self.lstLayers.blockSignals(True)
for i in xrange(self.lstLayers.count()):
item = self.lstLayers.item(i)
if item.text() in self.selectedoptions:
if self.lstLayers.indexFromItem(item).row() in self.selectedoptions:
selModel.select(self.lstLayers.indexFromItem(item),
QItemSelectionModel.Select)
self.lstLayers.blockSignals(False)

def accept(self):
self.selectedoptions = []
for i in self.lstLayers.selectedItems():
self.selectedoptions.append(i.text())
self.selectedoptions.append(self.lstLayers.indexFromItem(i).row())
QDialog.accept(self)

def reject(self):
@@ -95,4 +95,4 @@ def toggleSelection(self):
item = self.lstLayers.item(i)
selModel.select(self.lstLayers.indexFromItem(item),
QItemSelectionModel.Toggle)
self.lstLayers.blockSignals(False)
self.lstLayers.blockSignals(False)

0 comments on commit 2dce80b

Please sign in to comment.
You can’t perform that action at this time.