comparison src/gtk/transfer.c @ 553:b2b4f5fa8fc7

2004-9-14 Brian Masney <masneyb@gftp.org> * lib/gftp.h lib/bookmark.c lib/local.c lib/rfc2068.c lib/rfc959.c lib/sshv2.c src/gtk/transfer.c src/uicommon/gftpui.c - removed need_userpass from the gftp_request structure. Added need_username and need_password in it's place * autogen.sh - updated CFLAGS variable that is passed to configure
author masneyb
date Tue, 14 Sep 2004 10:16:52 +0000
parents 7262851e3ae8
children 7f54d0c0edbc
comparison
equal deleted inserted replaced
552:3774d35667f0 553:b2b4f5fa8fc7
530 transdata->curfle = templist; 530 transdata->curfle = templist;
531 gtk_ctree_node_set_row_data (GTK_CTREE (dlwdw), tempfle->user_data, 531 gtk_ctree_node_set_row_data (GTK_CTREE (dlwdw), tempfle->user_data,
532 transdata); 532 transdata);
533 } 533 }
534 534
535 if (!tdata->toreq->stopable && tdata->toreq->need_userpass && 535 if (!tdata->toreq->stopable && gftp_need_password (tdata->toreq))
536 (tdata->toreq->password == NULL || *tdata->toreq->password == '\0'))
537 { 536 {
538 tdata->toreq->stopable = 1; 537 tdata->toreq->stopable = 1;
539 MakeEditDialog (_("Enter Password"), 538 MakeEditDialog (_("Enter Password"),
540 _("Please enter your password for this site"), NULL, 0, 539 _("Please enter your password for this site"), NULL, 0,
541 NULL, gftp_dialog_button_connect, 540 NULL, gftp_dialog_button_connect,
542 get_trans_password, tdata->toreq, 541 get_trans_password, tdata->toreq,
543 cancel_get_trans_password, tdata); 542 cancel_get_trans_password, tdata);
544 } 543 }
545 544
546 if (!tdata->fromreq->stopable && tdata->fromreq->need_userpass && 545 if (!tdata->fromreq->stopable && gftp_need_password (tdata->fromreq))
547 (tdata->fromreq->password == NULL || *tdata->fromreq->password == '\0'))
548 { 546 {
549 tdata->fromreq->stopable = 1; 547 tdata->fromreq->stopable = 1;
550 MakeEditDialog (_("Enter Password"), 548 MakeEditDialog (_("Enter Password"),
551 _("Please enter your password for this site"), NULL, 0, 549 _("Please enter your password for this site"), NULL, 0,
552 NULL, gftp_dialog_button_connect, 550 NULL, gftp_dialog_button_connect,