Author: damoxc

Revision: 5179

Log:
        fix the onLogout handler if the window hasn't been rendered yet

Diff:
Modified: trunk/deluge/ui/web/js/Deluge.ConnectionManager.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.ConnectionManager.js  2009-04-27 11:30:30 UTC 
(rev 5178)
+++ trunk/deluge/ui/web/js/Deluge.ConnectionManager.js  2009-04-27 12:53:58 UTC 
(rev 5179)
@@ -225,7 +225,9 @@
                
                onLogout: function() {
                        this.disconnect();
-                       this.hide();
+                       if (!this.hidden && this.rendered) {
+                               this.hide();
+                       }
                },
                
                onRemove: function(button) {



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to