Skip to content
Permalink
Browse files

[processing] handle loading empty models in modeler (fix #8153)

  • Loading branch information
alexbruy committed Aug 28, 2013
1 parent bc63fcd commit b0ed8ed2bc95ce9d1945f9af033a758e71aac8d8
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/modeler/ModelerDialog.py
@@ -219,7 +219,8 @@ def openModel(self):
self.textGroup.setText(alg.group)
self.textName.setText(alg.name)
self.repaintModel()
self.view.ensureVisible(self.scene.getLastAlgorithmItem())
if self.scene.getLastAlgorithmItem():
self.view.ensureVisible(self.scene.getLastAlgorithmItem())
self.view.centerOn(0,0)
except WrongModelException, e:
QMessageBox.critical(self,

0 comments on commit b0ed8ed

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