www

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

commit 32bebeb1cd0739becf470798b952fff8adc76cb0
parent 0964277a37e285003d9874b83bac6725f953b773
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 22 Feb 2017 05:22:13 -0500

Fix importing from clipboard

Since there's no filename to show in the progress popup, show the
translator label (e.g., "BibTeX") instead.

Diffstat:
Mchrome/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 @@ -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 () {