From ac180c2324c039b8663ac13d438706aea2b9a5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 4 Apr 2018 13:51:54 +0300 Subject: [PATCH] Fix initial integration action requiring a slow citeproc (re)load (Regression 9c7271c6) --- chrome/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 index 9af609e4d..5afae267a 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -398,6 +398,7 @@ Zotero.Integration = new function() { } if (!session) { session = new Zotero.Integration.Session(doc, app); + session.reload = true; } try { yield session.setData(data); @@ -1576,7 +1577,7 @@ Zotero.Integration.Session.prototype.addCitation = Zotero.Promise.coroutine(func } // Deal with citations that are copied into the document from somewhere else // and have not been added to the processor yet - if (! this.oldCitations.has(citation.citationID)) { + if (! this.oldCitations.has(citation.citationID) && !this.reload) { this.newIndices[index] = true; } Zotero.debug("Integration: Adding citationID "+citation.citationID);