mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[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:
parent
f44be44ca9
commit
66f82530bd
@ -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"])))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user