From 8caf54869e43db82a2d4294d04ea8e20a63ccbf5 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 11 Oct 2004 14:15:25 +0000 Subject: r2915: Open domain first before enumerating users and groups (This used to be commit 9560a6c8cc650c3a519b14c79f497e6bd9ef387e) --- source4/gtk/tools/gwsam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source4/gtk/tools/gwsam.c b/source4/gtk/tools/gwsam.c index 75ff04f9cc..951096ddef 100644 --- a/source4/gtk/tools/gwsam.c +++ b/source4/gtk/tools/gwsam.c @@ -26,6 +26,7 @@ struct policy_handle sam_handle; struct dcerpc_pipe *sam_pipe = NULL; struct policy_handle domain_handle; GtkWidget *mainwin; +GtkWidget *seldomain; void update_grouplist(void) { @@ -96,6 +97,10 @@ on_select_domain_activate (GtkMenuItem *menuitem, return; } domain_handle = gtk_select_domain_dialog_get_handle(d); + + update_userlist(); + update_grouplist(); + gtk_widget_destroy(GTK_WIDGET(d)); } @@ -140,10 +145,8 @@ void on_connect_activate (GtkMenuItem *menuitem, gpointer user_data) return; } + gtk_widget_set_sensitive (seldomain, TRUE); gtk_widget_destroy(GTK_WIDGET(d)); - - update_userlist(); - update_grouplist(); } void @@ -216,7 +219,6 @@ create_mainwindow (void) GtkWidget *new1; GtkWidget *separatormenuitem1; GtkWidget *quit; - GtkWidget *seldomain; GtkWidget *policies; GtkWidget *policies_menu; GtkWidget *account; -- cgit