Skip to content

Commit

Permalink
fix SplitPaneChangeListener (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriba authored and matthiasgeiger committed Aug 25, 2016
1 parent 2b24001 commit b73b236
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/net/sf/jabref/gui/BasePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,6 @@ public BasePanel(JabRefFrame frame, BibDatabaseContext bibDatabaseContext) {
LOGGER.warn("Could not register FileUpdateMonitor", ex);
}
}

// saves the divider position as soon as it changes
splitPane.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY, propertyChangeEvent -> {
saveDividerLocation();
});
}

// Returns a collection of AutoCompleters, which are populated from the current database
Expand Down Expand Up @@ -1523,6 +1518,9 @@ public void setupMainPanel() {
splitPane.revalidate();
revalidate();
repaint();

// saves the divider position as soon as it changes
splitPane.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY, event -> saveDividerLocation());
}

public void updateSearchManager() {
Expand Down

0 comments on commit b73b236

Please sign in to comment.