Skip to content

Commit

Permalink
Viewer: Allow alias param to override GUI options
Browse files Browse the repository at this point in the history
(oversight from 3315db0)
  • Loading branch information
dcommander committed Jan 28, 2025
1 parent 8b01463 commit 411ec9e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ connection timeout specified using the `ConnectTimeout` OpenSSH config file
keyword was interpreted as milliseconds rather than seconds. This caused the
SSH connection to fail if the timeout was too low.

10. Fixed a regression introduced by 3.1 beta1[3] whereby the value of the
TurboVNC Viewer's `Subsampling` parameter, if specified using the `Samp` alias,
did not override per-host options that were previously saved by the TurboVNC
Viewer Options dialog.


3.1.3
=====
Expand Down
9 changes: 7 additions & 2 deletions java/com/turbovnc/rfb/AliasParameter.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* Copyright (C) 2012, 2018, 2022-2023 D. R. Commander. All Rights Reserved.
/* Copyright (C) 2012, 2018, 2022-2023, 2025 D. R. Commander.
* All Rights Reserved.
* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -27,7 +28,11 @@ public AliasParameter(String name, Params params, String desc,
param = param_;
}

public boolean set(String str) { return param.set(str); }
public boolean set(String str) {
boolean retval = param.set(str);
param.setCommandLine(isCommandLine());
return retval;
}

public void reset() { param.reset(); }

Expand Down

0 comments on commit 411ec9e

Please sign in to comment.