From 025ef61de1100b60b9525a586fd765a169252cc2 Mon Sep 17 00:00:00 2001 From: Filippo Scognamiglio <flscogna@gmail.com> Date: Fri, 26 Dec 2014 19:57:03 +0100 Subject: [PATCH] Allow profiles with the same name. --- app/qml/InsertNameDialog.qml | 9 --------- 1 file changed, 9 deletions(-) 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();