Skip to content

Commit

Permalink
Fix FTP entries not loading port when editing general settings
Browse files Browse the repository at this point in the history
Fixes #275 (K95 bug 770)
  • Loading branch information
davidrg committed Nov 14, 2024
1 parent 6178f22 commit d4eb4ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion kermit/dialer/ksetgeneral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d4eb4ee

Please sign in to comment.