Browse Source

fixes issue 2996, im going to blame an EDt violation

Change-Id: I496c5c493760abd91b36c876266044ebc24feaaf
Reviewed-on: http://gerrit.dmdirc.com/9
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
Tested-by: Gregory Holmes <greboid@dmdirc.com>
tags/0.6.3m2a1
Greboid 14 years ago
parent
commit
6510198071
1 changed files with 13 additions and 6 deletions
  1. 13
    6
      src/com/dmdirc/addons/ui_swing/components/frames/InputTextFrame.java

+ 13
- 6
src/com/dmdirc/addons/ui_swing/components/frames/InputTextFrame.java View File

@@ -119,13 +119,20 @@ public abstract class InputTextFrame extends TextFrame implements InputWindow,
119 119
     /** {@inheritDoc} */
120 120
     @Override
121 121
     public void open() {
122
-        super.open();
123
-        if (getConfigManager().getOptionBool("ui", "awayindicator") && getContainer().
124
-                getServer() != null) {
125
-            awayLabel.setVisible(getContainer().getServer().isAway());
126
-        }
122
+        UIUtilities.invokeLater(new Runnable() {
123
+
124
+            /** {@inheritDoc} */
125
+            @Override
126
+            public void run() {
127
+                InputTextFrame.super.open();
128
+                if (getConfigManager().getOptionBool("ui", "awayindicator") && getContainer().
129
+                    getServer() != null) {
130
+                    awayLabel.setVisible(getContainer().getServer().isAway());
131
+                }
127 132
 
128
-        inputField.requestFocusInWindow();
133
+                inputField.requestFocusInWindow();
134
+            }
135
+        });
129 136
     }
130 137
 
131 138
     /**

Loading…
Cancel
Save