[gnome-system-tools] Bug 580182 – Don't allow creating groups overwriting existing ones, part 2



commit 4e051f318afd53c794825bebf32cc1a04bba957d
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Mon Jul 27 11:44:28 2009 +0200

    Bug 580182 â?? Don't allow creating groups overwriting existing ones, part 2
    
    Fix a missing check for !user, and two strings that were not accurate.

 src/users/user-settings.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/users/user-settings.c b/src/users/user-settings.c
index 087ea26..fc9c4f7 100644
--- a/src/users/user-settings.c
+++ b/src/users/user-settings.c
@@ -556,10 +556,10 @@ check_login (gchar **primary_text, gchar **secondary_text, gpointer data)
 					      "letters and numbers."));
 	} else if (!user && login_exists (login)) {
 		*primary_text = g_strdup_printf (_("User name \"%s\" already exists"), login);
-		*secondary_text = g_strdup (_("Please select a different user name."));
-	} else if (group_settings_group_exists (login)) {
+		*secondary_text = g_strdup (_("Please choose a different user name."));
+	} else if (!user && group_settings_group_exists (login)) {
 		*primary_text = g_strdup_printf (_("Group \"%s\" already exists"), login);
-		*secondary_text = g_strdup (_("Please choose a different group name."));
+		*secondary_text = g_strdup (_("Please choose a different user name."));
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]