Skip to content

Commit

Permalink
Fix loop bug in close all action
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Dec 9, 2015
1 parent 8ebb430 commit 68ded04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/net/sf/jabref/gui/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -2361,8 +2361,10 @@ public void actionPerformed(ActionEvent e) {
public class CloseAllDatabasesAction extends MnemonicAwareAction {
@Override
public void actionPerformed(ActionEvent e) {
while((BasePanel) getCurrentBasePanel() != null) {
closeTab((BasePanel) getCurrentBasePanel());
final Component[] panels = tabbedPane.getComponents();

for(Component p : panels) {
closeTab((BasePanel) p);
}
}
}
Expand Down

0 comments on commit 68ded04

Please sign in to comment.