www

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

commit c5dad533a1be88898d11f3b3113c9d15421cf575
parent 90cc7efef437903d8727961a4e5cf3b11368ca1e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  3 Aug 2016 01:26:19 -0400

Fix translator updates

Diffstat:
Mchrome/content/zotero/xpcom/translation/translators.js | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translators.js b/chrome/content/zotero/xpcom/translation/translators.js @@ -446,10 +446,9 @@ Zotero.Translators = new function() { var translator = Zotero.Translators.get(metadata.translatorID); var sameFile = translator && destFile == translator.path; - if (sameFile) return; var exists = yield OS.File.exists(destFile); - if (exists) { + if (!sameFile && exists) { var msg = "Overwriting translator with same filename '" + fileName + "'"; Zotero.debug(msg, 1);