Merge pull request #914 from j9ac9k/fix-lastScene-signal-reference
Fix attribute lookup reference
This commit is contained in:
commit
3482a8436c
@ -277,7 +277,7 @@ class ViewBox(GraphicsWidget):
|
||||
scene = self.scene()
|
||||
if scene == self._lastScene:
|
||||
return
|
||||
if self._lastScene is not None and hasattr(self.lastScene, 'sigPrepareForPaint'):
|
||||
if self._lastScene is not None and hasattr(self._lastScene, 'sigPrepareForPaint'):
|
||||
self._lastScene.sigPrepareForPaint.disconnect(self.prepareForPaint)
|
||||
if scene is not None and hasattr(scene, 'sigPrepareForPaint'):
|
||||
scene.sigPrepareForPaint.connect(self.prepareForPaint)
|
||||
|
Loading…
Reference in New Issue
Block a user