Qt: Fix a possible crash on shutdown

If the game list is being refreshed due to play time update.
This commit is contained in:
Connor McLaughlin 2022-12-20 20:45:20 +10:00
parent 52817d967b
commit 81823562fa
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ MainWindow::~MainWindow()
{
Assert(!m_display_widget);
Assert(!m_debugger_window);
cancelGameListRefresh();
// we compare here, since recreate destroys the window later
if (g_main_window == this)