Mercurial > hg > Members > riono > TreeVNC_ja_comment
comparison src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java @ 467:fd803266ade7
Skip error dialog
author | one |
---|---|
date | Mon, 25 Jul 2016 19:09:27 +0900 |
parents | 432e2967eaab |
children | f8a88cdb857b |
comparison
equal
deleted
inserted
replaced
466:8d636adb292c | 467:fd803266ade7 |
---|---|
177 networkConnectionWorker.execute(); | 177 networkConnectionWorker.execute(); |
178 } | 178 } |
179 | 179 |
180 public void connectionFailed() { | 180 public void connectionFailed() { |
181 cancelConnection(); | 181 cancelConnection(); |
182 if (isTreeVNC) return; | |
182 if (allowInteractive) { | 183 if (allowInteractive) { |
183 enableConnectionDialog(); | 184 enableConnectionDialog(); |
184 } else { | 185 } else { |
185 connect(); | 186 connect(); |
186 } | 187 } |
187 } | 188 } |
188 | 189 |
189 public void connectionCancelled() { | 190 public void connectionCancelled() { |
190 cancelConnection(); | 191 cancelConnection(); |
192 if (isTreeVNC) return; | |
191 if (allowInteractive) { | 193 if (allowInteractive) { |
192 enableConnectionDialog(); | 194 enableConnectionDialog(); |
193 } else { | 195 } else { |
194 final ConnectionView connectionView = (ConnectionView) getView(CONNECTION_VIEW); | 196 final ConnectionView connectionView = (ConnectionView) getView(CONNECTION_VIEW); |
195 if (connectionView != null) { | 197 if (connectionView != null) { |
241 connectionView.showErrorDialog(message); | 243 connectionView.showErrorDialog(message); |
242 } | 244 } |
243 } | 245 } |
244 | 246 |
245 public void showReconnectDialog(String errorTitle, String errorMessage) { | 247 public void showReconnectDialog(String errorTitle, String errorMessage) { |
248 if (!isTreeVNC) return; | |
246 final ConnectionView connectionView = (ConnectionView) getView(CONNECTION_VIEW); | 249 final ConnectionView connectionView = (ConnectionView) getView(CONNECTION_VIEW); |
247 if (connectionView != null && needReconnection) { | 250 if (connectionView != null && needReconnection) { |
248 connectionView.showReconnectDialog(errorTitle, errorMessage); | 251 connectionView.showReconnectDialog(errorTitle, errorMessage); |
249 } | 252 } |
250 } | 253 } |