changeset 40:7932c91a140d

reattach the view to the messages tree after moving it to avoid an error about invalidate not being a function when switching sources
author Myk Melez <myk@mozilla.org>
date Tue, 29 Apr 2008 18:54:22 -0700
parents d4c74fdcd84d
children 545cf41290f9
files extension/content/snowl.js
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/extension/content/snowl.js	Tue Apr 29 18:25:47 2008 -0700
+++ b/extension/content/snowl.js	Tue Apr 29 18:54:22 2008 -0700
@@ -356,6 +356,11 @@
       appcontent.insertBefore(splitter, content);
       splitter.setAttribute("orient", "vertical");
     }
+
+    // Because we've moved the tree, we have to reattach the view to it, or we
+    // will get the error: "this._tree.boxObject.invalidate is not a function"
+    // when we switch sources.
+    this._tree.view = this;
   },
 
   onSelect: function(aEvent) {