Skip to content

Commit e6b15a5

Browse files
committed
Fixed Inconsistent Shell Reference in AboutDialog
1 parent d3cbd50 commit e6b15a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hdfview/src/main/java/hdf/view/HDFView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,8 +1074,8 @@ private void setupMacOSMenuHandlers(final Shell shell)
10741074
log.debug("macOS About menu triggered");
10751075
// Use asyncExec to ensure the menu is closed before opening the modal dialog
10761076
display.asyncExec(() -> {
1077-
if (!mainWindow.isDisposed()) {
1078-
new AboutDialog(mainWindow).open();
1077+
if (!shell.isDisposed()) {
1078+
new AboutDialog(shell).open();
10791079
}
10801080
});
10811081
});

0 commit comments

Comments
 (0)