From 05b60e8afb83df4d94f8120d68d66c9eba25af67 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 27 Jan 2012 17:43:32 +0100 Subject: [PATCH] [IMP] only protect crashmanager creation as other children are destroyed and recreated every time bzr revid: xmo@openerp.com-20120127164332-4mw5pxzoep0newgo --- addons/web/static/src/js/chrome.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 8804de96d34..1eb61f6a0ce 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -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);