Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] Don't overwrite rows when reordering in multi input
dialog

Refs #17327
  • Loading branch information
nyalldawson committed Apr 19, 2018
1 parent 2eca7ff commit a9d820d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/gui/MultipleInputDialog.py
Expand Up @@ -99,6 +99,7 @@ def populateList(self):
item.setData(value, Qt.UserRole)
item.setCheckState(Qt.Checked if value in self.selectedoptions else Qt.Unchecked)
item.setCheckable(True)
item.setDropEnabled(False)
self.model.appendRow(item)

# add extra options (e.g. manually added layers)
Expand All @@ -110,6 +111,7 @@ def populateList(self):
item.setData(item.text(), Qt.UserRole)
item.setCheckState(Qt.Checked)
item.setCheckable(True)
item.setDropEnabled(False)
self.model.appendRow(item)

self.lstLayers.setModel(self.model)
Expand Down Expand Up @@ -179,4 +181,5 @@ def addFiles(self):
item.setData(filename, Qt.UserRole)
item.setCheckState(Qt.Checked)
item.setCheckable(True)
item.setDropEnabled(False)
self.model.appendRow(item)

0 comments on commit a9d820d

Please sign in to comment.