canvas.gui: Fix warning when deleting widget after canvas
This commit is contained in:
parent
98e11ec207
commit
8eb3707042
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ gui.Widget = {
|
||||||
me._view = nil;
|
me._view = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( me._focused )
|
if( me._focused and me.getCanvas() )
|
||||||
me.getCanvas()._focused_widget = nil;
|
me.getCanvas()._focused_widget = nil;
|
||||||
},
|
},
|
||||||
# protected:
|
# protected:
|
||||||
|
|
Loading…
Reference in a new issue