Skip to content

Commit f085f55

Browse files
alexbruynyalldawson
authored andcommitted
rename method so API is compatible with recent changes and other wrappers
1 parent f8890d8 commit f085f55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/plugins/processing/gui/BatchInputSelectionPanel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def _table(self):
8585
def showPopupMenu(self):
8686
popupmenu = QMenu()
8787

88-
if not (isinstance(self.param, QgsProcessingParameterMultipleLayers) and
89-
self.param.layerType() == QgsProcessing.TypeFile):
88+
if (isinstance(self.param, QgsProcessingParameterMultipleLayers) and
89+
self.param.layerType() != QgsProcessing.TypeFile):
9090
selectLayerAction = QAction(self.tr('Select from Open Layers…'), self.pushButton)
9191
selectLayerAction.triggered.connect(self.showLayerSelectionDialog)
9292
popupmenu.addAction(selectLayerAction)
@@ -184,7 +184,7 @@ def textEditingFinished(self):
184184
self._value = self.text.text()
185185
self.valueChanged.emit()
186186

187-
def value(self):
187+
def getValue(self):
188188
return self._value if self._value else None
189189

190190
def setValue(self, value):

0 commit comments

Comments
 (0)