Skip to content
Permalink
Browse files

[processing]correctly update toolbox after editing/creating/deleting …

…models and scripts
  • Loading branch information
volaya committed Apr 19, 2014
1 parent 4c08528 commit 7ae6a63cf8d591abf308fdefbf9b03c06d0a7091
@@ -55,4 +55,7 @@ def execute(self):
dlg.show()
dlg.exec_()
if dlg.update:
self.toolbox.updateProvider('model')
if self.scriptType == self.SCRIPT_PYTHON:
self.toolbox.updateProvider('script')
elif self.scriptType == self.SCRIPT_R:
self.toolbox.updateProvider('r')
@@ -57,4 +57,7 @@ def execute(self, alg):
QMessageBox.No)
if reply == QMessageBox.Yes:
os.remove(self.alg.descriptionFile)
self.toolbox.updateTree()
if self.scriptType == self.SCRIPT_PYTHON:
self.toolbox.updateProvider('script')
elif self.scriptType == self.SCRIPT_R:
self.toolbox.updateProvider('r')
@@ -51,4 +51,8 @@ def execute(self):
dlg.show()
dlg.exec_()
if dlg.update:
self.toolbox.updateTree()
if self.scriptType == ScriptEditorDialog.SCRIPT_PYTHON:
self.toolbox.updateProvider('script')
elif self.scriptType == ScriptEditorDialog.SCRIPT_R:
self.toolbox.updateProvider('r')

@@ -46,4 +46,4 @@ def execute(self):
QtGui.QMessageBox.No)
if reply == QtGui.QMessageBox.Yes:
os.remove(self.alg.descriptionFile)
self.updateToolbox()
self.toolbox.updateProvider('model')
@@ -41,4 +41,4 @@ def execute(self):
dlg = ModelerDialog(self.alg.getCopy())
dlg.exec_()
if dlg.update:
self.updateToolbox()
self.toolbox.updateProvider('model')

0 comments on commit 7ae6a63

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