WM: NULL check for recent tooltip change

Caused crash dragging boolean buttons.
This commit is contained in:
2018-01-25 21:39:04 +11:00
parent 566eb60d81
commit 7d66925c73

View File

@@ -7671,7 +7671,9 @@ void UI_but_tooltip_timer_remove(bContext *C, uiBut *but)
data->autoopentimer = NULL;
}
WM_tooltip_clear(C, data->window);
if (data->window) {
WM_tooltip_clear(C, data->window);
}
}
}