diff --git a/doc/changes.md b/doc/changes.md index a10bf582..a7ce7835 100644 --- a/doc/changes.md +++ b/doc/changes.md @@ -155,6 +155,8 @@ by OpenSSH on modern versions of windows, add the command * Fixed K95 bug 797: Dialer generated connection scripts will no longer include `SET LOGIN PROMPT` or `SET LOGIN PASSWORD` commands if those fields do not have a value as this broke the use of the standard login.ksc script. +* Fixed K95 bug 770: When editing an FTP entry in the dialer the general settings + page doesn't load the port number causing it to be cleared on save. ### Other Source Changes * Fixed a selection of build warnings, and improved compatibility with the diff --git a/kermit/dialer/ksetgeneral.cpp b/kermit/dialer/ksetgeneral.cpp index 2ddb29d6..84763453 100644 --- a/kermit/dialer/ksetgeneral.cpp +++ b/kermit/dialer/ksetgeneral.cpp @@ -292,9 +292,14 @@ K_DIALOG_GENERAL_SETTINGS( KD_LIST_ITEM * entry, enum ENTRYMODE mode ) prompt->DataSet("Hostname or IP Address:"); combo = (UIW_COMBO_BOX *) Get( COMBO_TCP_PROTOCOL ); - combo->woFlags |= WOF_NON_SELECTABLE ; + combo->woFlags |= WOF_NON_SELECTABLE ; combo->Information(I_CHANGED_FLAGS,NULL) ; + string = (UIW_STRING *) Get( ENTRY_IPPORT ) ; + string->DataSet( entry->_ftpport, 32 ) ; + string->woFlags |= WOF_AUTO_CLEAR ; + string->Information(I_CHANGED_FLAGS,NULL) ; + button = (UIW_BUTTON *) Get( RADIO_FTP ) ; break;