diff --git a/app/qml/InsertNameDialog.qml b/app/qml/InsertNameDialog.qml index 535c8f4..d617862 100644 --- a/app/qml/InsertNameDialog.qml +++ b/app/qml/InsertNameDialog.qml @@ -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();