Changeset 3488 in josm


Ignore:
Timestamp:
2010-08-29T18:20:44+02:00 (12 years ago)
Author:
stoecker
Message:

fix #5212 - No shortcut displayed in shortcut list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Shortcut.java

    r3247 r3488  
    233233     */
    234234    public static List<Shortcut> listAll() {
    235         return new ArrayList<Shortcut>(shortcuts.values());
     235        List<Shortcut> l = new ArrayList<Shortcut>();
     236        for(Shortcut c : shortcuts.values())
     237        {
     238            if(!c.shortText.equals("core:none"))
     239                l.add(c);
     240        }
     241        return l;
    236242    }
    237243
Note: See TracChangeset for help on using the changeset viewer.