Skip to content

Commit

Permalink
Fix threading issue with opening from recent libraries (#4943)
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr authored and LinusDietz committed May 3, 2019
1 parent d4c6922 commit 99d99cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public void openFiles(List<Path> filesToOpen, boolean raisePanel) {
final List<Path> theFiles = Collections.unmodifiableList(filesToOpen);

for (Path theFile : theFiles) {
//This method will execute the concrete file opening and loading in a background thread
openTheFile(theFile, raisePanel);
}

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/jabref/gui/menus/FileHistoryMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import javafx.scene.control.Menu;
import javafx.scene.control.MenuItem;

import org.jabref.JabRefExecutorService;
import org.jabref.gui.DialogService;
import org.jabref.gui.JabRefFrame;
import org.jabref.logic.l10n.Localization;
Expand Down Expand Up @@ -71,7 +70,7 @@ public void openFile(Path file) {
setItems();
return;
}
JabRefExecutorService.INSTANCE.execute(() -> frame.getOpenDatabaseAction().openFile(file, true));
frame.getOpenDatabaseAction().openFile(file, true);

}

Expand Down

0 comments on commit 99d99cf

Please sign in to comment.