Make sure styles are loaded before opening doc-prefs dialog

This commit is contained in:
Adomas Venčkauskas 2017-04-14 14:30:26 +03:00
parent 49001572fd
commit de269b3021

View file

@ -2177,6 +2177,8 @@ Zotero.Integration.Session.prototype.setDocPrefs = Zotero.Promise.coroutine(func
io.requireStoreReferences = !Zotero.Utilities.isEmpty(this.embeddedItems);
}
// Make sure styles are initialized for new docs
yield Zotero.Styles.init();
yield Zotero.Integration.displayDialog(doc,
'chrome://zotero/content/integration/integrationDocPrefs.xul', '', io);