mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +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:
parent
16221305ad
commit
ef09f9c825
Notes:
sideshowbarker
2024-07-18 18:08:12 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ef09f9c825f
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue