diff options
author | Günther Deschner <gd@samba.org> | 2009-05-12 22:12:47 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-05-12 22:49:04 +0200 |
commit | 20b5fc02d2e97dbd51d84cc05ac887e274b14866 (patch) | |
tree | 7f7841b64dd4c3a0b4157e166e42f3703388a686 /source3/lib/netapi/examples | |
parent | ad9d64ee1b9e4cd4324b62c2bb2fd2eec9743e30 (diff) | |
download | samba-20b5fc02d2e97dbd51d84cc05ac887e274b14866.tar.gz samba-20b5fc02d2e97dbd51d84cc05ac887e274b14866.tar.bz2 samba-20b5fc02d2e97dbd51d84cc05ac887e274b14866.zip |
s3-netdomjoin-gui: inspect the correct computername string before
enabling/disabling the change button.
Guenther
Diffstat (limited to 'source3/lib/netapi/examples')
-rw-r--r-- | source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c index 629a447a24..fd487480d3 100644 --- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c +++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c @@ -853,7 +853,7 @@ static void callback_enter_hostname_and_unlock(GtkWidget *widget, gtk_label_set_text(GTK_LABEL(state->label_full_computer_name), str); free(str); - if (state->hostname_changed && str && str[0] != 0 && str[0] != '.') { + if (state->hostname_changed && entry_text && entry_text[0] != 0 && entry_text[0] != '.') { gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), TRUE); } } |