mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
GTableView: Fix crash on mousemove when no model is assigned.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user