File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
tmc-plugin/src/fi/helsinki/cs/tmc/ui Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 33import java .awt .Dialog ;
44import java .awt .event .ActionEvent ;
55import java .awt .event .ActionListener ;
6+ import java .awt .event .WindowAdapter ;
7+ import java .awt .event .WindowEvent ;
68import javax .swing .SwingUtilities ;
79import org .openide .DialogDescriptor ;
810import org .openide .DialogDisplayer ;
@@ -94,9 +96,16 @@ public void actionPerformed(ActionEvent e) {
9496 "TMC Settings" ,
9597 false ,
9698 NotifyDescriptor .OK_CANCEL_OPTION ,
97- NotifyDescriptor . PLAIN_MESSAGE ,
99+ null ,
98100 closeListener );
99101 dialog = DialogDisplayer .getDefault ().createDialog (descriptor );
102+ dialog .addWindowListener (new WindowAdapter () {
103+ @ Override
104+ public void windowClosed (WindowEvent we ) {
105+ panel = null ;
106+ dialog = null ;
107+ }
108+ });
100109 SwingUtilities .invokeLater (new Runnable () {
101110 @ Override
102111 public void run () {
You can’t perform that action at this time.
0 commit comments