mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
Fix ou handling in netdomjoin-gui.
The ou list was concatenated again and again... Guenther (This used to be commit 84608e165e24c68c12d40086f81684ef37f69159)
This commit is contained in:
parent
2595377988
commit
a75421b019
@ -84,6 +84,7 @@ typedef struct join_state {
|
||||
uint16_t server_role;
|
||||
gboolean settings_changed;
|
||||
gboolean hostname_changed;
|
||||
uint32_t stored_num_ous;
|
||||
} join_state;
|
||||
|
||||
static void debug(const char *format, ...)
|
||||
@ -932,11 +933,15 @@ static void callback_do_getous(GtkWidget *widget,
|
||||
return;
|
||||
}
|
||||
|
||||
for (i=0; i<state->stored_num_ous; i++) {
|
||||
gtk_combo_box_remove_text(GTK_COMBO_BOX(state->entry_ou_list), 0);
|
||||
}
|
||||
for (i=0; i<num_ous && ous[i] != NULL; i++) {
|
||||
gtk_combo_box_append_text(GTK_COMBO_BOX(state->entry_ou_list),
|
||||
ous[i]);
|
||||
}
|
||||
NetApiBufferFree(ous);
|
||||
state->stored_num_ous = num_ous;
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(state->entry_ou_list), num_ous-1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user