[gnome-system-tools] Remove duplicate deletion of groups



commit 960bf78e151e4fa79fb631344a674a73385e9401
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Mon Mar 15 16:49:17 2010 +0100

    Remove duplicate deletion of groups
    
    When deleting a group, checking, committing and removing from list were performed twice. Likely the result of a failed rebase.

 src/users/group-settings.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/users/group-settings.c b/src/users/group-settings.c
index e33465a..ed51fed 100644
--- a/src/users/group-settings.c
+++ b/src/users/group-settings.c
@@ -104,13 +104,6 @@ group_delete (GtkTreeModel *model, GtkTreePath *path)
 
 	if (check_group_delete (group)) {
 		config = OOBS_GROUPS_CONFIG (GST_USERS_TOOL (tool)->groups_config);
-		retval = (OOBS_RESULT_OK == oobs_groups_config_delete_group (config, group));
-
-		if (retval)
-			gtk_list_store_remove (GTK_LIST_STORE (model), &iter);
-	}
-	if (check_group_delete (group)) {
-		config = OOBS_GROUPS_CONFIG (GST_USERS_TOOL (tool)->groups_config);
 		result = oobs_groups_config_delete_group (config, group);
 		if (result == OOBS_RESULT_OK) {
 			gtk_list_store_remove (GTK_LIST_STORE (model), &iter);



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