Changeset 8222 in josm for trunk


Ignore:
Timestamp:
2015-04-18T17:17:12+02:00 (10 years ago)
Author:
simon04
Message:

fix #11335 - Add value dialog: canceling "Set number of recently added tags" shows warning message (patch by Larry0ua)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r8205 r8222  
    651651        private void selectNumberOfTags() {
    652652            String s = JOptionPane.showInputDialog(this, tr("Please enter the number of recently added tags to display"));
    653             if (s!=null) try {
     653            if (s == null) {
     654                return;
     655            }
     656            try {
    654657                int v = Integer.parseInt(s);
    655658                if (v>=0 && v<=MAX_LRU_TAGS_NUMBER) {
Note: See TracChangeset for help on using the changeset viewer.