Skip to content

Commit

Permalink
GTableView: Fix crash on mousemove when no model is assigned.
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed May 8, 2019
1 parent aff2fa4 commit 2848a96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LibGUI/GTableView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2848a96

Please sign in to comment.