Module: deluge
Branch: master
Commit: c176ff900f47864b2553e436e9d2a2be7037d624

Author: Damien Churchill <[email protected]>
Date:   Mon Apr 19 13:56:32 2010 +0100

fix updating the columns if the node hasn't yet been rendered

---

 .../ui/web/js/ext-extensions/TreeGridNodeUIFix.js  |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/deluge/ui/web/js/ext-extensions/TreeGridNodeUIFix.js 
b/deluge/ui/web/js/ext-extensions/TreeGridNodeUIFix.js
index 9d7c930..55a6cd4 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,

-- 
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