Skip to content
Permalink
Browse files

[processing] Don't overwrite rows when reordering in multi input

dialog

Refs #17327

(cherry-picked from a9d820d)
  • Loading branch information
nyalldawson committed Apr 20, 2018
1 parent 988a43b commit 6524cacd0bcac640f98c4ede1f5ed45fe95c53c2
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 6524cac

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