www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 477d0effe0d51f70a2438539a26e277f97b509cc
parent 13f0b1bfd267029c882072ddb516f33c1b29efb0
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue,  6 Jul 2010 06:53:45 +0000

call integration.cleanup() before attempting to display any dialogs


Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -213,7 +213,9 @@ Zotero.Integration = new function() { // Try to execute the command; otherwise display an error in the word processor try { integration[command](); + integration.cleanup(); } catch(e) { + integration.cleanup(); if(!(e instanceof Zotero.Integration.UserCancelledException)) { if(e instanceof Zotero.Integration.DisplayException) { integration._doc.displayAlert(e.toString(), @@ -255,7 +257,6 @@ Zotero.Integration = new function() { } } finally { _inProgress = false; - integration.cleanup(); } }