mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
GTableView: Fix crash on mousemove when no model is assigned.
This commit is contained in:
parent
aff2fa4383
commit
2848a96d66
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue