mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #4995 from vvanelslande/rename-profile
settings, configure_input: fix rename input profile
This commit is contained in:
		
						commit
						98c396f179
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -505,6 +505,7 @@ void ConfigureInput::RenameProfile() { | ||||||
| 
 | 
 | ||||||
|     ui->profile->setItemText(ui->profile->currentIndex(), new_name); |     ui->profile->setItemText(ui->profile->currentIndex(), new_name); | ||||||
|     Settings::RenameCurrentProfile(new_name.toStdString()); |     Settings::RenameCurrentProfile(new_name.toStdString()); | ||||||
|  |     Settings::SaveProfile(ui->profile->currentIndex()); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool ConfigureInput::IsProfileNameDuplicate(const QString& name) const { | bool ConfigureInput::IsProfileNameDuplicate(const QString& name) const { | ||||||
|  |  | ||||||
|  | @ -137,8 +137,7 @@ void DeleteProfile(int index) { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void RenameCurrentProfile(std::string new_name) { | void RenameCurrentProfile(std::string new_name) { | ||||||
|     Settings::values.input_profiles[Settings::values.current_input_profile_index].name = |     Settings::values.current_input_profile.name = std::move(new_name); | ||||||
|         std::move(new_name); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| } // namespace Settings
 | } // namespace Settings
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue