Permalink
Browse files

Open statistics dialog from correct thread (#3272)

The dialog to ask for collecting anonymous statistics needs to be created in
the Swing EDT. Do so using SwingUtilities.invokeLater().

This is a follow-up on 7ef2b3a and should finally fix #2955.
  • Loading branch information...
1 parent 0a7a718 commit 85363d077e42c28ffe7b3cac7cd854c8c8786273 @michaellass michaellass committed with tobiasdiez Oct 7, 2017
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/org/jabref/gui/JabRefFrame.java
@@ -664,7 +664,9 @@ private void initShowTrackingNotification() {
@Override
public void run() {
- DefaultTaskExecutor.runInJavaFXThread(JabRefFrame.this::showTrackingNotification);
+ SwingUtilities.invokeLater(() -> {
+ DefaultTaskExecutor.runInJavaFXThread(JabRefFrame.this::showTrackingNotification);
+ });
}
}, 60000); // run in one minute
}

0 comments on commit 85363d0

Please sign in to comment.