Changeset 8152 in josm for trunk/src/org


Ignore:
Timestamp:
2015-03-26T14:45:37+01:00 (10 years ago)
Author:
stoecker
Message:

fix #11230 - improper handling of imagery adjustemnet closing - patch by Markus Heidelberg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java

    r8126 r8152  
    1717import java.awt.event.MouseListener;
    1818import java.awt.event.MouseMotionListener;
     19import java.awt.event.WindowAdapter;
     20import java.awt.event.WindowEvent;
    1921import java.util.Formatter;
    2022import java.util.Locale;
     
    207209            setContent(pnl);
    208210            setupDialog();
     211            addWindowListener(new WindowEventHandler());
    209212        }
    210213
     
    302305            }
    303306        }
     307
     308        class WindowEventHandler extends WindowAdapter {
     309            @Override
     310            public void windowClosing(WindowEvent e) {
     311                setVisible(false);
     312            }
     313        }
    304314    }
    305315
Note: See TracChangeset for help on using the changeset viewer.