From 95d232db4f61096b07fc4178e0c50985fa9d30b9 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 17 Feb 2018 00:01:34 +0100 Subject: [PATCH] Qt: fix gamegrid scroll scrollafter is useless in gamegrid, because the currentIndex was reset after PopulateGameGrid, so just ignore it. --- rpcs3/rpcs3qt/game_list_frame.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index ada083a74c..b55998970d 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -533,7 +533,7 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter) } else { - m_gameList->verticalScrollBar()->setValue(std::min(m_gameList->verticalScrollBar()->maximum(), scroll_position)); + m_gameList->verticalScrollBar()->setValue(scroll_position); } } 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); m_Central_Widget->addWidget(m_xgrid); m_Central_Widget->setCurrentWidget(m_xgrid); - - if (scrollAfter) - { - m_xgrid->scrollTo(m_xgrid->currentIndex()); - } - else - { - m_xgrid->verticalScrollBar()->setValue(std::min(m_xgrid->verticalScrollBar()->maximum(), scroll_position)); - } + m_xgrid->verticalScrollBar()->setValue(scroll_position); } }