GTableView: Fix crash on mousemove when no model is assigned.

This commit is contained in:
Andreas Kling 2019-05-08 03:33:13 +02:00
parent aff2fa4383
commit 2848a96d66

View file

@ -149,6 +149,9 @@ void GTableView::mousedown_event(GMouseEvent& event)
void GTableView::mousemove_event(GMouseEvent& event)
{
if (!model())
return;
if (m_in_column_resize) {
auto delta = event.position() - m_column_resize_origin;
int new_width = m_column_resize_original_width + delta.x();