diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d3cccec53a..496156b4202 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv ### Fixed +- We fixed an issue where an exception dialog was shown when moving side panels down/up. [#15207](https://github.com/JabRef/jabref/issues/15207) - We fixed a false "Invalid citation key" warning for keys with diacritical marks. [#14953](https://github.com/JabRef/jabref/issues/14953) - We fixed an issue where duplicate fields can be created. [#15130](https://github.com/JabRef/jabref/issues/15130) - We fixed an issue where blank fields could be created. [#15130](https://github.com/JabRef/jabref/issues/15130) diff --git a/jabgui/src/main/java/org/jabref/gui/frame/SidePanePreferences.java b/jabgui/src/main/java/org/jabref/gui/frame/SidePanePreferences.java index 42904b8e0b0..2b0e2603dc8 100644 --- a/jabgui/src/main/java/org/jabref/gui/frame/SidePanePreferences.java +++ b/jabgui/src/main/java/org/jabref/gui/frame/SidePanePreferences.java @@ -1,5 +1,6 @@ package org.jabref.gui.frame; +import java.util.EnumMap; import java.util.EnumSet; import java.util.Map; import java.util.Set; @@ -20,8 +21,10 @@ public class SidePanePreferences { public SidePanePreferences(Set visiblePanes, Map preferredPositions, int webSearchFetcherSelected) { - this.visiblePanes = FXCollections.observableSet(visiblePanes); - this.preferredPositions = FXCollections.observableMap(preferredPositions); + this.visiblePanes = FXCollections.observableSet(EnumSet.noneOf(SidePaneType.class)); + this.visiblePanes.addAll(visiblePanes); + this.preferredPositions = FXCollections.observableMap(new EnumMap<>(SidePaneType.class)); + this.preferredPositions.putAll(preferredPositions); this.webSearchFetcherSelected = new SimpleIntegerProperty(webSearchFetcherSelected); }