[processing] Correctly make extent selection combo box non-editable

The choice is supposed to be only from the listed options, and
shouldn't allow free-form user text
This commit is contained in:
Nyall Dawson 2018-09-21 11:30:31 +10:00
parent f44be44ca9
commit 66f82530bd

View File

@ -137,7 +137,7 @@ class ExtentSelectionPanel(BASE, WIDGET):
extents.append(layerName)
extentsDict[layerName] = {"extent": layer.extent(), "authid": authid}
(item, ok) = QInputDialog.getItem(self, self.tr('Select Extent'),
self.tr('Use extent from'), extents, False)
self.tr('Use extent from'), extents, 0, False)
if ok:
self.setValueFromRect(QgsReferencedRectangle(extentsDict[item]["extent"], QgsCoordinateReferenceSystem(extentsDict[item]["authid"])))