From 4040f7afca8899a2b3c6745f99db27169c143a5a Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 24 Jul 2022 22:52:04 +1000 Subject: [PATCH] Qt: Fix game list not resizing after resize+shutdown game --- pcsx2-qt/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2-qt/MainWindow.cpp b/pcsx2-qt/MainWindow.cpp index d7ff8d2087..b2adb6a5d8 100644 --- a/pcsx2-qt/MainWindow.cpp +++ b/pcsx2-qt/MainWindow.cpp @@ -1959,6 +1959,7 @@ void MainWindow::destroyDisplayWidget(bool show_game_list) { m_game_list_widget->setVisible(true); setCentralWidget(m_game_list_widget); + m_game_list_widget->resizeTableViewColumnsToFit(); } } else @@ -1966,7 +1967,10 @@ void MainWindow::destroyDisplayWidget(bool show_game_list) pxAssertRel(m_ui.mainContainer->indexOf(m_display_widget) == 1, "Display widget in stack"); m_ui.mainContainer->removeWidget(m_display_widget); if (show_game_list) + { m_ui.mainContainer->setCurrentIndex(0); + m_game_list_widget->resizeTableViewColumnsToFit(); + } } }