diff --git a/src/main/java/org/jabref/gui/preferences/general/GeneralTab.fxml b/src/main/java/org/jabref/gui/preferences/general/GeneralTab.fxml
index a7a138a2922..924cd2a7504 100644
--- a/src/main/java/org/jabref/gui/preferences/general/GeneralTab.fxml
+++ b/src/main/java/org/jabref/gui/preferences/general/GeneralTab.fxml
@@ -72,6 +72,7 @@
text="%Warn about unresolved duplicates when closing inspection window"/>
+
diff --git a/src/main/java/org/jabref/gui/preferences/general/GeneralTab.java b/src/main/java/org/jabref/gui/preferences/general/GeneralTab.java
index ed72bd801b1..73e23068dc0 100644
--- a/src/main/java/org/jabref/gui/preferences/general/GeneralTab.java
+++ b/src/main/java/org/jabref/gui/preferences/general/GeneralTab.java
@@ -47,6 +47,7 @@ public class GeneralTab extends AbstractPreferenceTabView i
@FXML private CheckBox inspectionWarningDuplicate;
@FXML private CheckBox confirmDelete;
+ @FXML private CheckBox shouldAskForIncludingCrossReferences;
@FXML private CheckBox confirmHideTabBar;
@FXML private ComboBox biblatexMode;
@FXML private CheckBox alwaysReformatBib;
@@ -120,6 +121,7 @@ public void initialize() {
showAdvancedHints.selectedProperty().bindBidirectional(viewModel.showAdvancedHintsProperty());
inspectionWarningDuplicate.selectedProperty().bindBidirectional(viewModel.inspectionWarningDuplicateProperty());
confirmDelete.selectedProperty().bindBidirectional(viewModel.confirmDeleteProperty());
+ shouldAskForIncludingCrossReferences.selectedProperty().bindBidirectional(viewModel.shouldAskForIncludingCrossReferences());
confirmHideTabBar.selectedProperty().bindBidirectional(viewModel.confirmHideTabBarProperty());
new ViewModelListCellFactory()
diff --git a/src/main/java/org/jabref/gui/preferences/general/GeneralTabViewModel.java b/src/main/java/org/jabref/gui/preferences/general/GeneralTabViewModel.java
index f5a81028b65..70589770a79 100644
--- a/src/main/java/org/jabref/gui/preferences/general/GeneralTabViewModel.java
+++ b/src/main/java/org/jabref/gui/preferences/general/GeneralTabViewModel.java
@@ -76,6 +76,7 @@ public class GeneralTabViewModel implements PreferenceTabViewModel {
private final BooleanProperty showAdvancedHintsProperty = new SimpleBooleanProperty();
private final BooleanProperty inspectionWarningDuplicateProperty = new SimpleBooleanProperty();
private final BooleanProperty confirmDeleteProperty = new SimpleBooleanProperty();
+ private final BooleanProperty shouldAskForIncludingCrossReferencesProperty = new SimpleBooleanProperty();
private final BooleanProperty hideTabBarProperty = new SimpleBooleanProperty();
private final ListProperty bibliographyModeListProperty = new SimpleListProperty<>();
@@ -185,6 +186,7 @@ public void setValues() {
inspectionWarningDuplicateProperty.setValue(workspacePreferences.shouldWarnAboutDuplicatesInInspection());
confirmDeleteProperty.setValue(workspacePreferences.shouldConfirmDelete());
+ shouldAskForIncludingCrossReferencesProperty.setValue(preferences.getCopyToPreferences().getShouldAskForIncludingCrossReferences());
hideTabBarProperty.setValue(workspacePreferences.shouldHideTabBar());
bibliographyModeListProperty.setValue(FXCollections.observableArrayList(BibDatabaseMode.values()));
@@ -227,6 +229,7 @@ public void storeSettings() {
workspacePreferences.setWarnAboutDuplicatesInInspection(inspectionWarningDuplicateProperty.getValue());
workspacePreferences.setConfirmDelete(confirmDeleteProperty.getValue());
+ preferences.getCopyToPreferences().setShouldAskForIncludingCrossReferences(shouldAskForIncludingCrossReferencesProperty.getValue());
workspacePreferences.setHideTabBar(confirmHideTabBarProperty().getValue());
libraryPreferences.setDefaultBibDatabaseMode(selectedBiblatexModeProperty.getValue());
@@ -374,6 +377,10 @@ public BooleanProperty confirmDeleteProperty() {
return this.confirmDeleteProperty;
}
+ public BooleanProperty shouldAskForIncludingCrossReferences() {
+ return this.shouldAskForIncludingCrossReferencesProperty;
+ }
+
public BooleanProperty confirmHideTabBarProperty() {
return this.hideTabBarProperty;
}
diff --git a/src/main/resources/l10n/JabRef_en.properties b/src/main/resources/l10n/JabRef_en.properties
index afcfa807a30..96519d3c2dd 100644
--- a/src/main/resources/l10n/JabRef_en.properties
+++ b/src/main/resources/l10n/JabRef_en.properties
@@ -2859,6 +2859,7 @@ Would\ you\ like\ to\ include\ cross-reference\ entries\ in\ the\ current\ opera
Entries\ copied\ successfully,\ including\ cross-references.=Entries copied successfully, including cross-references.
Entries\ copied\ successfully,\ without\ cross-references.=Entries copied successfully, without cross-references.
+Ask\ whether\ to\ include\ cross-references\ when\ copying\ to\ another\ library=Ask whether to include cross-references when copying to another library
All\ patterns=All patterns
Author\ related=Author related