mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +00:00
SystemMonitor: Make sure we set a model before changing column sizes
Changing a view's column metadata requires that a model is set.
This commit is contained in:
@@ -86,9 +86,9 @@ ProcessStateWidget::ProcessStateWidget(pid_t pid)
|
||||
set_layout<GUI::VerticalBoxLayout>();
|
||||
layout()->set_margins({ 4, 4, 4, 4 });
|
||||
m_table_view = add<GUI::TableView>();
|
||||
m_table_view->set_model(adopt_ref(*new ProcessStateModel(ProcessModel::the(), pid)));
|
||||
m_table_view->column_header().set_visible(false);
|
||||
m_table_view->column_header().set_section_size(0, 90);
|
||||
m_table_view->set_model(adopt_ref(*new ProcessStateModel(ProcessModel::the(), pid)));
|
||||
}
|
||||
|
||||
ProcessStateWidget::~ProcessStateWidget()
|
||||
|
||||
Reference in New Issue
Block a user