From a9392f9002a6fd6eb5fd15dc01bdb907c8f7de11 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 27 Apr 2009 12:53:58 +0000 Subject: [PATCH] fix the onLogout handler if the window hasn't been rendered yet --- deluge/ui/web/js/Deluge.ConnectionManager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/js/Deluge.ConnectionManager.js b/deluge/ui/web/js/Deluge.ConnectionManager.js index 322ef6a32..0b75e87c5 100644 --- a/deluge/ui/web/js/Deluge.ConnectionManager.js +++ b/deluge/ui/web/js/Deluge.ConnectionManager.js @@ -225,7 +225,9 @@ Copyright: onLogout: function() { this.disconnect(); - this.hide(); + if (!this.hidden && this.rendered) { + this.hide(); + } }, onRemove: function(button) {