Skip to content
Permalink
Browse files

Merge pull request #4964 from arnaud-morvan/processing_delete_dialogs

[processing] Correctly delete processing dialogs
  • Loading branch information
nyalldawson committed Aug 5, 2017
2 parents 2e2edd6 + 40ccd3b commit ca1abdc716cc8a9cb5b2c065d0ea355158532229
@@ -90,7 +90,7 @@ def triggerResult(self, result):
dlg.exec_()
# have to manually delete the dialog - otherwise it's owned by the
# iface mainWindow and never deleted
del dlg
dlg.deleteLater()
if canvas.mapTool() != prevMapTool:
try:
canvas.mapTool().reset()
@@ -252,7 +252,7 @@ def executeAlgorithmAsBatchProcess(self):
dlg.exec_()
# have to manually delete the dialog - otherwise it's owned by the
# iface mainWindow and never deleted
del dlg
dlg.deleteLater()

def executeAlgorithm(self):
item = self.algorithmTree.currentItem()
@@ -293,7 +293,7 @@ def executeAlgorithm(self):
self.addRecentAlgorithms(True)
# have to manually delete the dialog - otherwise it's owned by the
# iface mainWindow and never deleted
del dlg
dlg.deleteLater()
else:
feedback = MessageBarProgress()
context = dataobjects.createContext(feedback)
@@ -280,7 +280,7 @@ def runAlgorithm(self):

# have to manually delete the dialog - otherwise it's owned by the
# iface mainWindow and never deleted
del dlg
dlg.deleteLater()

if canvas.mapTool() != prevMapTool:
try:
@@ -293,7 +293,7 @@ def runModel(self):
dlg.exec_()
# have to manually delete the dialog - otherwise it's owned by the
# iface mainWindow and never deleted
del dlg
dlg.deleteLater()

def save(self):
self.saveModel(False)

0 comments on commit ca1abdc

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