diff --git a/src/main/java/org/jabref/gui/LibraryTab.java b/src/main/java/org/jabref/gui/LibraryTab.java index fe04b9dc45a..1c4f52e8b41 100644 --- a/src/main/java/org/jabref/gui/LibraryTab.java +++ b/src/main/java/org/jabref/gui/LibraryTab.java @@ -262,11 +262,7 @@ private void onDatabaseLoadingFailed(Exception ex) { private void setDatabaseContext(BibDatabaseContext bibDatabaseContext) { if (this.getTabPane().getSelectionModel().selectedItemProperty().get().equals(this)) { - // If you open an existing library, a library tab with a loading animation is added immediately. - // At that point, the library tab is given a temporary (TODO null?) bibDatabaseContext with no entries. - // This line is necessary because, while there is already a binding that updates the active database when a new tab is added, - // it doesn't handle the case when a library is loaded asynchronously. - // See org.jabref.gui.LibraryTab.createLibraryTab for the asynchronous loading. + LOGGER.debug("This case should not happen."); stateManager.setActiveDatabase(bibDatabaseContext); }