Skip to content
Permalink
Browse files

Fix test

  • Loading branch information
elpaso committed Oct 5, 2018
1 parent 29c4970 commit cdf5bb630faf841027f68a343f594c6357b2125a
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/gui/AlgorithmDialog.py
@@ -71,7 +71,7 @@ def __init__(self, alg, in_place=False, parent=None):

self.feedback_dialog = None
self.in_place = in_place
self.active_layer = iface.activeLayer()
self.active_layer = None

self.setAlgorithm(alg)
self.setMainWidget(self.getParametersPanel(alg, self))
@@ -81,6 +81,7 @@ def __init__(self, alg, in_place=False, parent=None):
self.runAsBatchButton.clicked.connect(self.runAsBatch)
self.buttonBox().addButton(self.runAsBatchButton, QDialogButtonBox.ResetRole) # reset role to ensure left alignment
else:
self.active_layer = iface.activeLayer()
self.runAsBatchButton = None
has_selection = self.active_layer and (self.active_layer.selectedFeatureCount() > 0)
self.buttonBox().button(QDialogButtonBox.Ok).setText(QCoreApplication.translate("AlgorithmDialog", "Modify Selected Features")

0 comments on commit cdf5bb6

Please sign in to comment.
You can’t perform that action at this time.