Don't try to set lastLocale pref in doc prefs unless locale was changed

This commit is contained in:
Dan Stillman 2015-06-28 17:16:33 -04:00
parent 3a5854f49f
commit ddf3ff9ba9

View file

@ -264,6 +264,8 @@ var Zotero_File_Interface_Bibliography = new function() {
}
// save locale
Zotero.Prefs.set("export.lastLocale", lastSelectedLocale);
if (lastSelectedLocale) {
Zotero.Prefs.set("export.lastLocale", lastSelectedLocale);
}
};
}