Ignore:
Timestamp:
2018-09-13T22:48:54+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16730 - make sure we try to display popup menus only if their parent is visible on screen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetMenu.java

    r14153 r14248  
    106106                    Point p = pointerInfo.getLocation();
    107107                    MainFrame parent = MainApplication.getMainFrame();
    108                     pm.show(parent, p.x-parent.getX(), p.y-parent.getY());
     108                    if (parent.isShowing()) {
     109                        pm.show(parent, p.x-parent.getX(), p.y-parent.getY());
     110                    }
    109111                }
    110112            } catch (SecurityException ex) {
Note: See TracChangeset for help on using the changeset viewer.