mirror of https://github.com/PCSX2/pcsx2.git
Qt: Ensure game list refresh is cancelled before destroying
This commit is contained in:
parent
3f4f9ad5f1
commit
6df0a315a9
|
@ -123,6 +123,9 @@ MainWindow::MainWindow()
|
|||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
// make sure the game list isn't refreshing, because it's on a separate thread
|
||||
cancelGameListRefresh();
|
||||
|
||||
// we compare here, since recreate destroys the window later
|
||||
if (g_main_window == this)
|
||||
g_main_window = nullptr;
|
||||
|
|
Loading…
Reference in New Issue