1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-24 12:16:28 +01:00

Fixed window icon in FeatureSelectionDialog.

This commit is contained in:
sk89q 2014-01-09 18:11:30 -08:00
parent 73575a2325
commit 016e14415b
2 changed files with 1 additions and 6 deletions

View File

@ -42,8 +42,6 @@ public class FeatureSelectionDialog extends JDialog {
setSize(new Dimension(500, 400)); setSize(new Dimension(500, 400));
setResizable(false); setResizable(false);
setLocationRelativeTo(owner); setLocationRelativeTo(owner);
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
} }
private void initComponents() { private void initComponents() {

View File

@ -187,10 +187,7 @@ public class ProgressDialog extends JDialog {
public static ProgressDialog getLastDialog() { public static ProgressDialog getLastDialog() {
WeakReference<ProgressDialog> ref = lastDialogRef; WeakReference<ProgressDialog> ref = lastDialogRef;
if (ref != null) { if (ref != null) {
ProgressDialog dialog = ref.get(); return ref.get();
if (!dialog.isVisible()) {
return dialog;
}
} }
return null; return null;