mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
Qt: fix gamegrid scroll
scrollafter is useless in gamegrid, because the currentIndex was reset after PopulateGameGrid, so just ignore it.
This commit is contained in:
parent
00b1ff752d
commit
95d232db4f
1 changed files with 2 additions and 10 deletions
|
@ -533,7 +533,7 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_gameList->verticalScrollBar()->setValue(std::min(m_gameList->verticalScrollBar()->maximum(), scroll_position));
|
m_gameList->verticalScrollBar()->setValue(scroll_position);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -551,15 +551,7 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter)
|
||||||
connect(m_xgrid, &QTableWidget::customContextMenuRequested, this, &game_list_frame::ShowContextMenu);
|
connect(m_xgrid, &QTableWidget::customContextMenuRequested, this, &game_list_frame::ShowContextMenu);
|
||||||
m_Central_Widget->addWidget(m_xgrid);
|
m_Central_Widget->addWidget(m_xgrid);
|
||||||
m_Central_Widget->setCurrentWidget(m_xgrid);
|
m_Central_Widget->setCurrentWidget(m_xgrid);
|
||||||
|
m_xgrid->verticalScrollBar()->setValue(scroll_position);
|
||||||
if (scrollAfter)
|
|
||||||
{
|
|
||||||
m_xgrid->scrollTo(m_xgrid->currentIndex());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_xgrid->verticalScrollBar()->setValue(std::min(m_xgrid->verticalScrollBar()->maximum(), scroll_position));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue