mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Qt: Fix intermittent crash on exit (#6612)
* Fix null pointer deref on exit * Fix from review
This commit is contained in:
		
							parent
							
								
									238a574645
								
							
						
					
					
						commit
						d807cdfe62
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -587,7 +587,9 @@ bool GRenderWindow::event(QEvent* event) { | ||||||
| 
 | 
 | ||||||
| void GRenderWindow::focusOutEvent(QFocusEvent* event) { | void GRenderWindow::focusOutEvent(QFocusEvent* event) { | ||||||
|     QWidget::focusOutEvent(event); |     QWidget::focusOutEvent(event); | ||||||
|     InputCommon::GetKeyboard()->ReleaseAllKeys(); |     if (auto* keyboard = InputCommon::GetKeyboard(); keyboard) { | ||||||
|  |         keyboard->ReleaseAllKeys(); | ||||||
|  |     } | ||||||
|     has_focus = false; |     has_focus = false; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue