1
0
Fork 0

canvas.gui: Fix warning when deleting widget after canvas

This commit is contained in:
Thomas Geymayer 2018-02-25 15:30:50 +01:00
parent 98e11ec207
commit 8eb3707042

View file

@ -121,7 +121,7 @@ gui.Widget = {
me._view = nil;
}
if( me._focused )
if( me._focused and me.getCanvas() )
me.getCanvas()._focused_widget = nil;
},
# protected: