Skip to content
Permalink
Browse files

Merge pull request #6069 from volaya/fix_field_calculator

[processing] added missing method to custom field calculator dialog
  • Loading branch information
alexbruy committed Jan 15, 2018
2 parents dc99b8b + 418d587 commit 99baf1acb645daaf2230dfae469bf2a17aabc9ca
Showing with 5 additions and 0 deletions.
  1. +5 −0 python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py
@@ -77,6 +77,7 @@ def __init__(self, alg):
self.setupUi(self)

self.executed = False
self._wasExecuted = False
self.alg = alg
self.layer = None

@@ -244,6 +245,7 @@ def accept(self):
context,
self.feedback,
not keepOpen)
self._wasExecuted = self.executed or self._wasExecuted
if not keepOpen:
QDialog.reject(self)

@@ -257,3 +259,6 @@ def setPercentage(self, i):
def error(self, text):
QMessageBox.critical(self, "Error", text)
QgsMessageLog.logMessage(text, self.tr('Processing'), QgsMessageLog.CRITICAL)

def wasExecuted(self):
return self._wasExecuted

0 comments on commit 99baf1a

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