Skip to content

Commit

Permalink
Merge pull request #56 from NicosPavlov/mac-integration
Browse files Browse the repository at this point in the history
Fix double-click opening of files on Mac
  • Loading branch information
koppor committed May 31, 2015
2 parents c2e1772 + d9f0c86 commit 0a7f47a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/net/sf/jabref/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,6 @@ public JabRefFrame() {
private void init() {
tabbedPane = new DragDropPopupPane(manageSelectors, databaseProperties, bibtexKeyPattern);

macOSXRegistration();

UIManager.put("FileChooser.readOnly", Globals.prefs.getBoolean("filechooserDisableRename"));

MyGlassPane glassPane = new MyGlassPane();
Expand Down Expand Up @@ -580,6 +578,11 @@ public void stateChanged(ChangeEvent e) {
}
}
});

//Note: The registration of Apple event is at the end of initialization, because
//if the events happen too early (ie when the window is not initialized yet), the
//opened (double-clicked) documents are not displayed.
macOSXRegistration();
}

public void setWindowTitle() {
Expand Down

0 comments on commit 0a7f47a

Please sign in to comment.