Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 99baf1a
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -77,6 +77,7 @@ def __init__(self, alg):
self.setupUi(self)

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

Expand Down Expand Up @@ -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)

Expand All @@ -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.