Permalink
Browse files

Merge pull request #7183 from spycrab/qt_gamelist_fixes

Qt/GameList: Fix some resizing bugs
  • Loading branch information...
spycrab committed Jun 29, 2018
2 parents 1073aa4 + a9f065a commit 2e6d2a034209980ba4a4e1916d53302025399305
Showing with 5 additions and 3 deletions.
  1. +5 −3 Source/Core/DolphinQt2/GameList/GameList.cpp
@@ -574,7 +574,8 @@ void GameList::OnSectionResized(int index, int, int)
for (int i = vis_index + 1; i < col_count; i++)
{
if (hor_header->sectionResizeMode(i) != QHeaderView::Interactive)
const int logical_index = hor_header->logicalIndex(i);
if (hor_header->sectionResizeMode(logical_index) != QHeaderView::Interactive)
continue;
last = false;
@@ -585,10 +586,11 @@ void GameList::OnSectionResized(int index, int, int)
{
for (int i = 0; i < vis_index; i++)
{
if (hor_header->sectionResizeMode(i) != QHeaderView::Interactive)
const int logical_index = hor_header->logicalIndex(i);
if (hor_header->sectionResizeMode(logical_index) != QHeaderView::Interactive)
continue;
hor_header->setSectionResizeMode(hor_header->logicalIndex(i), QHeaderView::Fixed);
hor_header->setSectionResizeMode(logical_index, QHeaderView::Fixed);
sections.push_back(i);
}

0 comments on commit 2e6d2a0

Please sign in to comment.