Skip to content

Commit

Permalink
Fix #16520.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 12, 2024
1 parent 9840c51 commit 8b904a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public void protocolSelectionChanged(final NSPopUpButton sender) {
final Protocol selected = protocols.forName(sender.selectedItem().representedObject());
log.debug("Protocol selection changed to {}", selected);
bookmark.setProtocol(selected);
final String hostname = HostnameConfiguratorFactory.get(selected).getHostname(bookmark.getHostname());
final String hostname = HostnameConfiguratorFactory.get(selected).getHostname(selected.getDefaultHostname());
if(StringUtils.isNotBlank(hostname)) {
// Prefill with default hostname
bookmark.setHostname(hostname);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ private void View_ChangedProtocolEvent()
{
_host.setProtocol(selected);

var hostname = HostnameConfiguratorFactory.get(selected).getHostname(_host.getHostname());
var hostname = HostnameConfiguratorFactory.get(selected).getHostname(selected.getDefaultHostname());
if (Utils.IsNotBlank(hostname))
{
// Prefill with default hostname
Expand Down

0 comments on commit 8b904a2

Please sign in to comment.