Merge pull request #10492 from Rubonnek/fix-segfault-on-arch-linux

Fixed segfault when hovering over tree elements and showing tooltips.
This commit is contained in:
Juan Linietsky 2017-08-20 23:59:44 -03:00 committed by GitHub
commit d8cd849a43

View file

@ -1456,6 +1456,10 @@ void Viewport::_gui_show_tooltip() {
gui.tooltip_popup = NULL; gui.tooltip_popup = NULL;
} }
if (!gui.tooltip) {
return;
}
Control *rp = gui.tooltip->get_root_parent_control(); Control *rp = gui.tooltip->get_root_parent_control();
if (!rp) if (!rp)
return; return;