Skip to content

Commit

Permalink
rename method so API is compatible with recent changes and other wrap…
Browse files Browse the repository at this point in the history
…pers
  • Loading branch information
alexbruy authored and nyalldawson committed May 8, 2019
1 parent f8890d8 commit f085f55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/gui/BatchInputSelectionPanel.py
Expand Up @@ -85,8 +85,8 @@ def _table(self):
def showPopupMenu(self):
popupmenu = QMenu()

if not (isinstance(self.param, QgsProcessingParameterMultipleLayers) and
self.param.layerType() == QgsProcessing.TypeFile):
if (isinstance(self.param, QgsProcessingParameterMultipleLayers) and
self.param.layerType() != QgsProcessing.TypeFile):
selectLayerAction = QAction(self.tr('Select from Open Layers…'), self.pushButton)
selectLayerAction.triggered.connect(self.showLayerSelectionDialog)
popupmenu.addAction(selectLayerAction)
Expand Down Expand Up @@ -184,7 +184,7 @@ def textEditingFinished(self):
self._value = self.text.text()
self.valueChanged.emit()

def value(self):
def getValue(self):
return self._value if self._value else None

def setValue(self, value):
Expand Down

0 comments on commit f085f55

Please sign in to comment.