mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 02:38:37 +12:00
Qt: apply header states after populating the tables
This commit is contained in:
parent
bff9a06f9f
commit
325048a134
2 changed files with 8 additions and 7 deletions
|
@ -173,6 +173,12 @@ game_list_frame::game_list_frame(std::shared_ptr<gui_settings> guiSettings, std:
|
|||
|
||||
void game_list_frame::LoadSettings()
|
||||
{
|
||||
m_colSortOrder = xgui_settings->GetValue(gui::gl_sortAsc).toBool() ? Qt::AscendingOrder : Qt::DescendingOrder;
|
||||
m_sortColumn = xgui_settings->GetValue(gui::gl_sortCol).toInt();
|
||||
m_categoryFilters = xgui_settings->GetGameListCategoryFilters();
|
||||
|
||||
Refresh(true);
|
||||
|
||||
QByteArray state = xgui_settings->GetValue(gui::gl_state).toByteArray();
|
||||
if (!m_gameList->horizontalHeader()->restoreState(state) && m_gameList->rowCount())
|
||||
{
|
||||
|
@ -191,12 +197,6 @@ void game_list_frame::LoadSettings()
|
|||
FixNarrowColumns();
|
||||
|
||||
m_gameList->horizontalHeader()->restoreState(m_gameList->horizontalHeader()->saveState());
|
||||
|
||||
m_colSortOrder = xgui_settings->GetValue(gui::gl_sortAsc).toBool() ? Qt::AscendingOrder : Qt::DescendingOrder;
|
||||
m_sortColumn = xgui_settings->GetValue(gui::gl_sortCol).toInt();
|
||||
m_categoryFilters = xgui_settings->GetGameListCategoryFilters();
|
||||
|
||||
Refresh(true);
|
||||
}
|
||||
|
||||
game_list_frame::~game_list_frame()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue