Skip to content

Commit

Permalink
[processing] Fix broken execution of models via browser/drag and drop
Browse files Browse the repository at this point in the history
Fixes #43698
Fixes #42181
  • Loading branch information
nyalldawson committed Jun 14, 2021
1 parent 9de5d25 commit cbe2678
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/ProcessingPlugin.py
Expand Up @@ -85,6 +85,9 @@ def runAlg(file):
alg.setProvider(QgsApplication.processingRegistry().providerById('model'))
dlg = AlgorithmDialog(alg, parent=iface.mainWindow())
dlg.show()
# do NOT remove!!!! if you do then sip forgets the python subclass of AlgorithmDialog and you get a broken
# dialog
dlg.exec_()
return True

def customUriProviderKey(self):
Expand Down

0 comments on commit cbe2678

Please sign in to comment.