Skip to content

Commit

Permalink
#346 add log if failed to get the parent shell
Browse files Browse the repository at this point in the history
  • Loading branch information
angryziber committed Dec 18, 2022
1 parent 690d0de commit 5cd2882
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/net/azib/ipscan/gui/AbstractModalDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.widgets.*;

import java.util.logging.Logger;

/**
* This is the base of a modal dialog window
*
Expand Down Expand Up @@ -69,7 +71,7 @@ protected final void createShell() {
parent = Display.getCurrent().getShells()[0];
}
catch (Exception e) {
// ignore if unsuccessful
Logger.getLogger(getClass().getName()).warning("Failed to get parent shell: " + e);
}

shell = new Shell(parent, getShellStyle());
Expand Down

0 comments on commit 5cd2882

Please sign in to comment.