From c176ff900f47864b2553e436e9d2a2be7037d624 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 19 Apr 2010 13:56:32 +0100 Subject: [PATCH] fix updating the columns if the node hasn't yet been rendered --- deluge/ui/web/js/ext-extensions/TreeGridNodeUIFix.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/ui/web/js/ext-extensions/TreeGridNodeUIFix.js b/deluge/ui/web/js/ext-extensions/TreeGridNodeUIFix.js index 9d7c9303f..55a6cd4d8 100644 --- a/deluge/ui/web/js/ext-extensions/TreeGridNodeUIFix.js +++ b/deluge/ui/web/js/ext-extensions/TreeGridNodeUIFix.js @@ -33,6 +33,8 @@ Ext.override(Ext.ux.tree.TreeGridNodeUI, { updateColumns: function() { + if (!this.rendered) return; + var a = this.node.attributes, t = this.node.getOwnerTree(), cols = t.columns,