Changeset 872 for java/installer2/src/net
- Timestamp:
- May 20, 2013, 11:21:39 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/gui/settings/SettingsDialog.java
r860 r872 96 96 @SuppressWarnings("unused") 97 97 private boolean save() { 98 ProxySettings prox = ProxySettings.getInstance(); 98 99 99 100 boolean proxyUse = chkUseProxy.isSelected(); … … 112 113 String proxyHost = txtProxyHost.getText(); 113 114 114 ProxySettings prox = ProxySettings.getInstance();115 115 if (!prox.getHostOrIp().equalsIgnoreCase(proxyHost) 116 116 || (prox.getPort() != proxyPort) … … 123 123 prox.setHostOrIp(proxyHost); 124 124 prox.setPort(proxyPort); 125 if (!prox.validate()) { 126 JOptionPane.showMessageDialog(this, 127 bundle.getString("proxyVerifyFailed.text"), 128 bundle.getString("proxyVerifyFailed.title"), 129 JOptionPane.ERROR_MESSAGE); 130 prox.setUseProxy(proxyOldUse); 131 prox.setHostOrIp(proxyOldHost); 132 prox.setPort(proxyOldPort); 133 return false; 125 if (proxyUse) { 126 if (!prox.validate()) { 127 JOptionPane.showMessageDialog(this, 128 bundle.getString("proxyVerifyFailed.text"), 129 bundle.getString("proxyVerifyFailed.title"), 130 JOptionPane.ERROR_MESSAGE); 131 prox.setUseProxy(proxyOldUse); 132 prox.setHostOrIp(proxyOldHost); 133 prox.setPort(proxyOldPort); 134 return false; 135 } 134 136 } 135 137
Note:
See TracChangeset
for help on using the changeset viewer.