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/download/UserQueryList.java

    r14146 r14248  
    323323                if (model.getSize() == 0 || index == -1) {
    324324                    list.clearSelection();
    325                     emptySelectionPopup.show(list, e.getX(), e.getY());
     325                    if (list.isShowing()) {
     326                        emptySelectionPopup.show(list, e.getX(), e.getY());
     327                    }
    326328                } else {
    327329                    list.setSelectedIndex(index);
    328330                    list.ensureIndexIsVisible(index);
    329                     elementPopup.show(list, e.getX(), e.getY());
     331                    if (list.isShowing()) {
     332                        elementPopup.show(list, e.getX(), e.getY());
     333                    }
    330334                }
    331335            }
Note: See TracChangeset for help on using the changeset viewer.