Ignore:
Timestamp:
2014-02-12T15:58:32+01:00 (6 years ago)
Author:
akks
Message:

see #9709: "Add to toolbar" in preset list context menu (F3-right click)

File:
1 edited

Legend:

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

    r6744 r6844  
    333333            String res = actionParser.saveAction(aDef);
    334334
    335             Collection<String> t = new LinkedList<String>(ToolbarPreferences.getToolString());
    336335            // add custom search button to toolbar preferences
    337             if (!t.contains(res)) t.add(res);
    338             Main.pref.putCollection("toolbar", t);
    339             Main.toolbar.refreshToolbarControl();
     336            Main.toolbar.addCustomButton(res, -1, false);
    340337        }
    341338        return initialValues;
Note: See TracChangeset for help on using the changeset viewer.