mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	configure_hotkeys: Make comparison check a little more self-documenting
This is checking if an index is valid or not and returning early if it isn't.
This commit is contained in:
		
							parent
							
								
									c33c27d646
								
							
						
					
					
						commit
						47176e19be
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -70,8 +70,9 @@ void ConfigureHotkeys::OnInputKeysChanged(QList<QKeySequence> new_key_list) { | |||
| } | ||||
| 
 | ||||
| void ConfigureHotkeys::Configure(QModelIndex index) { | ||||
|     if (index.parent() == QModelIndex()) | ||||
|     if (!index.parent().isValid()) { | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     index = index.sibling(index.row(), 1); | ||||
|     auto* model = ui->hotkey_list->model(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue