Skip to content

Commit 66f8253

Browse files
committedSep 21, 2018
[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
1 parent f44be44 commit 66f8253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/gui/ExtentSelectionPanel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def useLayerExtent(self):
137137
extents.append(layerName)
138138
extentsDict[layerName] = {"extent": layer.extent(), "authid": authid}
139139
(item, ok) = QInputDialog.getItem(self, self.tr('Select Extent'),
140-
self.tr('Use extent from'), extents, False)
140+
self.tr('Use extent from'), extents, 0, False)
141141
if ok:
142142
self.setValueFromRect(QgsReferencedRectangle(extentsDict[item]["extent"], QgsCoordinateReferenceSystem(extentsDict[item]["authid"])))
143143

0 commit comments

Comments
 (0)
Please sign in to comment.