mirror of
				https://github.com/RetroDECK/Duckstation.git
				synced 2025-04-10 19:15:14 +00:00 
			
		
		
		
	Qt: Fix possible crash when loading state via menu
This commit is contained in:
		
							parent
							
								
									12ddeb675c
								
							
						
					
					
						commit
						acd49f3765
					
				|  | @ -475,8 +475,11 @@ void MainWindow::connectSignals() | |||
|           &MainWindow::onSystemPerformanceCountersUpdated); | ||||
|   connect(m_host_interface, &QtHostInterface::runningGameChanged, this, &MainWindow::onRunningGameChanged); | ||||
| 
 | ||||
|   connect(m_game_list_widget, &GameListWidget::entrySelected, this, &MainWindow::onGameListEntrySelected); | ||||
|   connect(m_game_list_widget, &GameListWidget::entryDoubleClicked, this, &MainWindow::onGameListEntryDoubleClicked); | ||||
|   // These need to be queued connections to stop crashing due to menus opening/closing and switching focus.
 | ||||
|   connect(m_game_list_widget, &GameListWidget::entrySelected, this, &MainWindow::onGameListEntrySelected, | ||||
|           Qt::QueuedConnection); | ||||
|   connect(m_game_list_widget, &GameListWidget::entryDoubleClicked, this, &MainWindow::onGameListEntryDoubleClicked, | ||||
|           Qt::QueuedConnection); | ||||
|   connect(m_game_list_widget, &GameListWidget::entryContextMenuRequested, this, | ||||
|           &MainWindow::onGameListContextMenuRequested); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Connor McLaughlin
						Connor McLaughlin