Fix exception when hiding comments

This commit is contained in:
Nyall Dawson 2020-04-01 11:45:01 +10:00
parent 50b723ce7b
commit 90a0a2d6a6

View File

@ -205,7 +205,7 @@ class ModelerDialog(QgsModelDesignerDialog):
showComments = QgsSettings().value("/Processing/Modeler/ShowComments", True, bool)
if not showComments:
self.scene.setFlag(QgsModelGraphicsScene.FlagHideComments)
scene.setFlag(QgsModelGraphicsScene.FlagHideComments)
context = createContext()
scene.createItems(self.model(), context)