[IMP] only protect crashmanager creation as other children are destroyed and recreated every time

bzr revid: xmo@openerp.com-20120127164332-4mw5pxzoep0newgo
This commit is contained in:
Xavier Morel
2012-01-27 17:43:32 +01:00
parent 2c073283df
commit 05b60e8afb
+3 -3
View File
@@ -1107,9 +1107,9 @@ openerp.web.WebClient = openerp.web.OldWidget.extend(/** @lends openerp.web.WebC
self.menu.start();
},
show_common: function() {
if (this.initialized_common) { return; }
this.initialized_common = true;
this.crashmanager = new openerp.web.CrashManager();
if (!this.crashmanager) {
this.crashmanager = new openerp.web.CrashManager();
}
this.notification = new openerp.web.Notification(this);
this.notification.appendTo(this.$element);
this.loading = new openerp.web.Loading(this);