Browse Source

Server.showRaw now activates existing raw instances instead of blindly adding more

git-svn-id: http://svn.dmdirc.com/trunk@2695 00569f92-eb28-0410-84fd-f71c24880f
tags/0.5.5
Chris Smith 16 years ago
parent
commit
4776ca0a81
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      src/com/dmdirc/Server.java

+ 7
- 3
src/com/dmdirc/Server.java View File

@@ -434,10 +434,14 @@ public final class Server extends WritableFrameContainer implements Serializable
434 434
      * Adds a raw window to this server.
435 435
      */
436 436
     public void addRaw() {
437
-        raw = new Raw(this);
437
+        if (raw == null) {
438
+            raw = new Raw(this);
438 439
 
439
-        if (parser != null) {
440
-            raw.registerCallbacks();
440
+            if (parser != null) {
441
+                raw.registerCallbacks();
442
+            }
443
+        } else {
444
+            raw.activateFrame();
441 445
         }
442 446
     }
443 447
 

Loading…
Cancel
Save