Skip to content

Commit

Permalink
Fix for issue 7287 (#7290)
Browse files Browse the repository at this point in the history
  • Loading branch information
eludif authored Jan 4, 2021
1 parent eff250b commit a69bb58
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/org/jabref/gui/JabRefDialogService.java
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ public Optional<ButtonType> showCustomDialogAndWait(String title, DialogPane con

@Override
public <R> Optional<R> showCustomDialogAndWait(javafx.scene.control.Dialog<R> dialog) {
dialog.initOwner(mainWindow);
if (dialog.getOwner() == null) {
dialog.initOwner(mainWindow);
}
return dialog.showAndWait();
}

Expand Down Expand Up @@ -398,7 +400,9 @@ public Optional<Path> showFileOpenFromArchiveDialog(Path archivePath) throws IOE

@Override
public void showCustomDialog(BaseDialog<?> aboutDialogView) {
aboutDialogView.initOwner(mainWindow);
if (aboutDialogView.getOwner() == null) {
aboutDialogView.initOwner(mainWindow);
}
aboutDialogView.show();
}
}

0 comments on commit a69bb58

Please sign in to comment.