Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Oct 5, 2018
1 parent 29c4970 commit cdf5bb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/gui/AlgorithmDialog.py
Expand Up @@ -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))
Expand All @@ -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")
Expand Down

0 comments on commit cdf5bb6

Please sign in to comment.