Skip to content

Commit

Permalink
Fix URISyntaxException on second instance
Browse files Browse the repository at this point in the history
Closes qzind#644
  • Loading branch information
tresf committed May 26, 2020
1 parent 204e2cb commit 4bf9704
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/qz/ui/AboutDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public void initComponents() {
infoPanel.setLayout(new BoxLayout(infoPanel, BoxLayout.Y_AXIS));

LinkLabel linkLibrary = new LinkLabel("Detailed library information");
linkLibrary.setLinkLocation(String.format("%s://%s:%s", server.getURI().getScheme(), AboutInfo.getPreferredHostname(), server.getURI().getPort()));

if(server.isRunning() && !server.isStopping()) {
linkLibrary.setLinkLocation(String.format("%s://%s:%s", server.getURI().getScheme(), AboutInfo.getPreferredHostname(), server.getURI().getPort()));
}
Box versionBox = Box.createHorizontalBox();
versionBox.setAlignmentX(Component.LEFT_ALIGNMENT);
versionBox.add(new JLabel(String.format("%s (Java)", Constants.VERSION.toString())));
Expand Down

0 comments on commit 4bf9704

Please sign in to comment.