LibGUI: Actually store the column in MultiView::set_model_column()
We were only forwarding the value to the subviews, but not storing it in m_model_column. This would cause MultiView::model_column() to return the wrong value. Thanks to Daniel Bos for spotting this! :^)
This commit is contained in:
parent
074d935c6e
commit
9c6f7d3e7d
Notes:
sideshowbarker
2024-07-19 09:04:35 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9c6f7d3e7d2
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,9 @@ void MultiView::set_model(RefPtr<Model> model)
|
|||
|
||||
void MultiView::set_model_column(int column)
|
||||
{
|
||||
if (m_model_column == column)
|
||||
return;
|
||||
m_model_column = column;
|
||||
m_item_view->set_model_column(column);
|
||||
m_columns_view->set_model_column(column);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue