diff --git a/src/main/java/org/jabref/gui/openoffice/OOBibBase.java b/src/main/java/org/jabref/gui/openoffice/OOBibBase.java index f24b98d8712..8c1b6233ce4 100644 --- a/src/main/java/org/jabref/gui/openoffice/OOBibBase.java +++ b/src/main/java/org/jabref/gui/openoffice/OOBibBase.java @@ -615,6 +615,9 @@ public void guiActionInsertEntry(List entries, // "Insert empty citation" this.cslCitationOOAdapter.insertEmpty(cursor.get(), entries); } + + // If "Automatically sync bibliography when inserting citations" is enabled + syncOptions.ifPresent(options -> guiActionUpdateDocument(options.databases, citationStyle)); } else if (style instanceof JStyle jStyle) { // Handle insertion of JStyle citations @@ -939,7 +942,7 @@ public void guiActionUpdateDocument(List databases, OOStyle style) return; } - // A separate database and database + // A separate database and database context BibDatabase bibDatabase = new BibDatabase(citedEntries); BibDatabaseContext bibDatabaseContext = new BibDatabaseContext(bibDatabase);