Skip to content
Permalink
Browse files

[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 a9d820d37dea3c759f5e5a0e34f3aaa8f7bfcf38
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/gui/MultipleInputDialog.py
@@ -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)
@@ -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)
@@ -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.
You can’t perform that action at this time.