X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Fgtk2%2Fmain.c;h=880c641c46ae448ed7aed14da3348d953d89dc61;hb=e5fc6b8cff14b7afe47072f7ccfb0798bd893a51;hp=88d68b9bb462b2349ae2950d7b43c29edb0679fd;hpb=0931eb36fd5528e336ecb69e801b05e8062b64fd;p=doldaconnect.git diff --git a/clients/gtk2/main.c b/clients/gtk2/main.c index 88d68b9..880c641 100644 --- a/clients/gtk2/main.c +++ b/clients/gtk2/main.c @@ -102,7 +102,7 @@ pid_t pubhubproc = 0; char *pubhubaddr = NULL; char *connectas = NULL; char *dcserver = NULL; -int autoconn = 0; +int autoconn = 1; int srchautoupdate = 0; int cursrch = -1, nextsrch = -1; time_t srcheta; @@ -1518,6 +1518,11 @@ int pubhubxmlhandler(int op, char *buf, size_t *len) } break; case PHO_EOF: + if(ctxt == NULL) + { + msgbox(GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, _("A hub list could not be read from %s"), pubhubaddr); + break; + } xmlParseChunk(ctxt, NULL, 0, 1); if(!ctxt->wellFormed) {