changeset 473:37b1e8cbc6bb

supless conection error dialog
author one
date Thu, 24 Nov 2016 16:40:16 +0900
parents 126b84644ca7
children f0bd5f2c4ba3
files src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java	Thu Aug 04 17:50:52 2016 +0900
+++ b/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java	Thu Nov 24 16:40:16 2016 +0900
@@ -231,7 +231,7 @@
     }
 
     public void showConnectionErrorDialog(String message) {
-        if (!isTreeVNC) return;
+        if (isTreeVNC) return;
         final ConnectionView connectionView = (ConnectionView) getView(CONNECTION_VIEW);
         if (connectionView != null) {
             connectionView.showConnectionErrorDialog(message);
@@ -239,7 +239,7 @@
     }
 
     public void showPortErrorDialog(String message) {
-        if (!isTreeVNC) return;
+        if (isTreeVNC) return;
         final ConnectionView connectionView = (ConnectionView) getView(CONNECTION_VIEW);
         if (connectionView != null) {
             connectionView.showErrorDialog(message);
@@ -247,7 +247,7 @@
     }
 
     public void showReconnectDialog(String errorTitle, String errorMessage) {
-        if (!isTreeVNC) return;
+        if (isTreeVNC) return;
         final ConnectionView connectionView = (ConnectionView) getView(CONNECTION_VIEW);
         if (connectionView != null && needReconnection) {
             connectionView.showReconnectDialog(errorTitle, errorMessage);
@@ -255,6 +255,7 @@
     }
 
     public boolean showShareSoundDialog() {
+        if (isTreeVNC) return false;
         final ConnectionView connectionView = (ConnectionView) getView(CONNECTION_VIEW);
         boolean shareSound = false;
         if (connectionView != null) {