Fix importing from clipboard

Since there's no filename to show in the progress popup, show the
translator label (e.g., "BibTeX") instead.
This commit is contained in:
Dan Stillman 2017-02-22 05:22:13 -05:00
parent 0964277a37
commit 32bebeb1cd

View file

@ -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 () {