]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Fix ancient window closing bug.
authorChris Porter <redacted>
Sun, 19 Oct 2008 01:58:45 +0000 (02:58 +0100)
committerChris Porter <redacted>
Sun, 19 Oct 2008 01:58:45 +0000 (02:58 +0100)
TODO.txt
js/ui/baseui.js

index 3b7cc2d2ea98aafa4191a5b85a0dc30409ac9ebf..d7880c7c82387a18f438731dfe641d80aed61574 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -6,3 +6,4 @@ should close() if > 2 connections are made
 double click -> query\r
 tab completion\r
 options for notices and stuff\r
+not showing error on server shutdown
\ No newline at end of file
index 53f5bc048d3273d45506fbd586f48105a83ba3d2..9a6cf1631725790da4343d765f9434dd2d7ae7a6 100644 (file)
@@ -73,11 +73,10 @@ qwebirc.ui.BaseUI = new Class({
         } else {
           this.selectWindow(this.windowArray[index - 1]);
         }
-        
-        this.windowArray = this.windowArray.erase(window);
       }
     }
     
+    this.windowArray = this.windowArray.erase(window);
     delete this.windows[window.client][window.identifier];
   },
     /*