From 32bebeb1cd0739becf470798b952fff8adc76cb0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 22 Feb 2017 05:22:13 -0500 Subject: [PATCH] Fix importing from clipboard Since there's no filename to show in the progress popup, show the translator label (e.g., "BibTeX") instead. --- chrome/content/zotero/fileInterface.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js index 3253573487..cf8a282130 100644 --- a/chrome/content/zotero/fileInterface.js +++ b/chrome/content/zotero/fileInterface.js @@ -338,7 +338,9 @@ var Zotero_File_Interface = new function() { }); progressWin.changeHeadline(Zotero.getString('fileInterface.importing')); var icon = 'chrome://zotero/skin/treesource-unfiled' + (Zotero.hiDPI ? "@2x" : "") + '.png'; - let progress = new progressWin.ItemProgress(icon, OS.Path.basename(translation.path)); + let progress = new progressWin.ItemProgress( + icon, translation.path ? OS.Path.basename(translation.label) : translators[0].label + ); progressWin.show(); translation.setHandler("itemDone", function () {