Qt: apply header states after populating the tables

This commit is contained in:
Megamouse 2018-05-22 11:38:02 +02:00 committed by Ani
parent bff9a06f9f
commit 325048a134
2 changed files with 8 additions and 7 deletions

View file

@ -250,6 +250,8 @@ trophy_manager_dialog::trophy_manager_dialog(std::shared_ptr<gui_settings> gui_s
m_splitter->setSizes({ width_left, width_right });
}
PopulateUI();
QByteArray game_table_state = m_gui_settings->GetValue(gui::tr_games_state).toByteArray();
if (!m_game_table->horizontalHeader()->restoreState(game_table_state) && m_game_table->rowCount())
{
@ -266,7 +268,6 @@ trophy_manager_dialog::trophy_manager_dialog(std::shared_ptr<gui_settings> gui_s
m_trophy_table->horizontalHeader()->resizeSections(QHeaderView::ResizeMode::ResizeToContents);
}
PopulateUI();
ApplyFilter();
// Make connects