aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/share-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/groupwise-features/share-folder.c')
-rw-r--r--plugins/groupwise-features/share-folder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/groupwise-features/share-folder.c b/plugins/groupwise-features/share-folder.c
index cd712fd857..847279c2d2 100644
--- a/plugins/groupwise-features/share-folder.c
+++ b/plugins/groupwise-features/share-folder.c
@@ -406,7 +406,8 @@ remove_clicked(GtkButton *button, ShareFolder *sf)
usr->flag |= 0x4;
}
g_free (email);
- gtk_list_store_remove (GTK_LIST_STORE (sf->model), &(sf->iter));
+ if (!gtk_list_store_remove (GTK_LIST_STORE (sf->model), &(sf->iter)))
+ gtk_widget_set_sensitive (GTK_WIDGET (sf->remove), FALSE);
sf->flag_for_ok = 1;
}