mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-10-31 14:56:40 +08:00 
			
		
		
		
	configure_hotkeys: Change critical error dialog into a warning dialog
critical() is intended for critical/fatal errors that threaten the overall stability of an application. A user entering a conflicting key sequence is neither of those.
This commit is contained in:
		
							parent
							
								
									ef3c0f54d0
								
							
						
					
					
						commit
						d61199721d
					
				| @ -67,8 +67,8 @@ void ConfigureHotkeys::Configure(QModelIndex index) { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (IsUsedKey(key_sequence) && key_sequence != QKeySequence(previous_key.toString())) { |     if (IsUsedKey(key_sequence) && key_sequence != QKeySequence(previous_key.toString())) { | ||||||
|         QMessageBox::critical(this, tr("Error in inputted key"), |         QMessageBox::warning(this, tr("Error in inputted key"), | ||||||
|                               tr("You're using a key that's already bound.")); |                              tr("You're using a key that's already bound.")); | ||||||
|     } else { |     } else { | ||||||
|         model->setData(index, key_sequence.toString(QKeySequence::NativeText)); |         model->setData(index, key_sequence.toString(QKeySequence::NativeText)); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user