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:
Andreas Kling 2020-02-25 10:47:30 +01:00
parent 074d935c6e
commit 9c6f7d3e7d
Notes: sideshowbarker 2024-07-19 09:04:35 +09:00

View file

@ -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);
}