mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-31 07:04:20 +00:00 
			
		
		
		
	Allow profiles with the same name.
This commit is contained in:
		| @@ -49,12 +49,6 @@ Window{ | ||||
|         var profile_list = appSettings.profilesList; | ||||
|         if (name === "") | ||||
|             return 1; | ||||
|  | ||||
|         for (var i = 0; i < profile_list.count; i++){ | ||||
|             if(profile_list.get(i).text === name) | ||||
|                 return 2; | ||||
|         } | ||||
|  | ||||
|         return 0; | ||||
|     } | ||||
|  | ||||
| @@ -83,9 +77,6 @@ Window{ | ||||
|                     case 1: | ||||
|                         errorDialog.showError(qsTr("The name you inserted is empty. Please choose a different one.")); | ||||
|                         break; | ||||
|                     case 2: | ||||
|                         errorDialog.showError(qsTr("The name you inserted already exists. Please choose a different one.")); | ||||
|                         break; | ||||
|                     default: | ||||
|                         nameSelected(name); | ||||
|                         close(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user