From ed6137e5f94f45e50a12994aeae310278b2bf758 Mon Sep 17 00:00:00 2001 From: Max Bowsher Date: Fri, 7 Mar 2003 22:25:31 +0000 Subject: [PATCH] 2003-03-05 Max Bowsher * netio.cc (save_dialog): Allocate an empty string if the password is null, so that an empty password is accepted elsewhere in setup. (check_if_enable_ok): An empty password is OK. --- ChangeLog | 12 +++++++++--- netio.cc | 6 +++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e01f2d57..f8f8c3f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,17 +1,23 @@ +2003-03-05 Max Bowsher + + * netio.cc (save_dialog): Allocate an empty string if the password is + null, so that an empty password is accepted elsewhere in setup. + (check_if_enable_ok): An empty password is OK. + 2003-03-05 Brian Keener - * PickView.cc (PickView::views): Add two new views for Skipped + * PickView.cc (PickView::views): Add two new views for Skipped packages and Installed Packages not requiring update. (PickView::set_headers () ): Ditto. (PickView::clear_view (void) ): Ditto. (PickView::views::caption () ): Add two new captions for the new views added for Skipped and Installed Packages. (PickView::scroll () ): Modify Scroll Bar property to Disable - instead of disappearing when there is nothing to Scroll. + instead of disappearing when there is nothing to Scroll. * PickView.h: Add two new views for Skipped packages and Installed packages to public class view. * choose.cc (list_click () ): Modify Scroll Bar property to Disable - instead of disappearing when there is nothing to Scroll. + instead of disappearing when there is nothing to Scroll. (listview_proc () ): Ditto. (set_view_mode): Add two new views for Skipped Packages and Installed Packages not requiring update. Modify Scroll Bar property to Disable diff --git a/netio.cc b/netio.cc index 571cc27d..0fe6ddf4 100644 --- a/netio.cc +++ b/netio.cc @@ -170,7 +170,7 @@ static void check_if_enable_ok (HWND h) { int e = 0; - if (*user && *passwd) + if (*user) e = 1; EnableWindow (GetDlgItem (h, IDOK), e); } @@ -190,6 +190,10 @@ save_dialog (HWND h) { *user = eget (h, IDC_NET_USER, *user); *passwd = eget (h, IDC_NET_PASSWD, *passwd); + if (! *passwd) { + *passwd = new char[1]; + passwd[0] = '\0'; + } } static BOOL -- 2.43.5