call integration.cleanup() before attempting to display any dialogs
This commit is contained in:
parent
13f0b1bfd2
commit
477d0effe0
|
@ -213,7 +213,9 @@ Zotero.Integration = new function() {
|
||||||
// Try to execute the command; otherwise display an error in the word processor
|
// Try to execute the command; otherwise display an error in the word processor
|
||||||
try {
|
try {
|
||||||
integration[command]();
|
integration[command]();
|
||||||
|
integration.cleanup();
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
integration.cleanup();
|
||||||
if(!(e instanceof Zotero.Integration.UserCancelledException)) {
|
if(!(e instanceof Zotero.Integration.UserCancelledException)) {
|
||||||
if(e instanceof Zotero.Integration.DisplayException) {
|
if(e instanceof Zotero.Integration.DisplayException) {
|
||||||
integration._doc.displayAlert(e.toString(),
|
integration._doc.displayAlert(e.toString(),
|
||||||
|
@ -255,7 +257,6 @@ Zotero.Integration = new function() {
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
_inProgress = false;
|
_inProgress = false;
|
||||||
integration.cleanup();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user