summaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/vncviewer/ClipboardDialog.java
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2012-09-01 19:24:26 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2012-09-01 19:24:26 +0000
commit4a95c7f69e8b308612c8fde4c748f148cdde6598 (patch)
treeaf0059b3e5b472e4bc139abec033e0ebb6bf11e3 /java/com/tigervnc/vncviewer/ClipboardDialog.java
parent3b0f2ae380ed9d1ac2e679480cf450329cc8f4e5 (diff)
downloadtigervnc-4a95c7f69e8b308612c8fde4c748f148cdde6598.tar.gz
tigervnc-4a95c7f69e8b308612c8fde4c748f148cdde6598.zip
Forces all dialogs except for the clipboard to be modal. Fixes cases where dialogs are not brought to the front while in fullscreen mode. Corrects a few corner cases where viewer did not exit properly.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4988 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/com/tigervnc/vncviewer/ClipboardDialog.java')
-rw-r--r--java/com/tigervnc/vncviewer/ClipboardDialog.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/java/com/tigervnc/vncviewer/ClipboardDialog.java b/java/com/tigervnc/vncviewer/ClipboardDialog.java
index 69fc7114..41f92b1a 100644
--- a/java/com/tigervnc/vncviewer/ClipboardDialog.java
+++ b/java/com/tigervnc/vncviewer/ClipboardDialog.java
@@ -97,12 +97,10 @@ class ClipboardDialog extends Dialog implements ActionListener {
current = "";
textArea.setText(current);
} else if (s instanceof JButton && (JButton)s == sendButton) {
- ok = true;
current = textArea.getText();
cc.writeClientCutText(current, current.length());
endDialog();
} else if (s instanceof JButton && (JButton)s == cancelButton) {
- ok = false;
endDialog();
}
}