Allow profiles with the same name.

This commit is contained in:
Filippo Scognamiglio 2014-12-26 19:57:03 +01:00
parent e4c7ffe201
commit 025ef61de1

View File

@ -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();