Changeset 9152 in josm for trunk/src/org


Ignore:
Timestamp:
2015-12-25T21:13:14+01:00 (4 years ago)
Author:
simon04
Message:

fix #12183 - "Registered toolbar action save_as-session overwritten"

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r9062 r9152  
    5959     */
    6060    public SessionSaveAsAction() {
    61         super(tr("Save Session As..."), "session", tr("Save the current session to a new file."), null, true, "save_as-session", true);
     61        this(true, true);
     62    }
     63
     64    /**
     65     * Constructs a new {@code SessionSaveAsAction}.
     66     * @param toolbar Register this action for the toolbar preferences?
     67     * @param installAdapters False, if you don't want to install layer changed and selection changed adapters
     68     */
     69    protected SessionSaveAsAction(boolean toolbar, boolean installAdapters) {
     70        super(tr("Save Session As..."), "session", tr("Save the current session to a new file."), null, toolbar, "save_as-session", installAdapters);
    6271        putValue("help", ht("/Action/SessionSaveAs"));
    6372    }
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java

    r8919 r9152  
    370370
    371371    class SaveSessionAction extends SessionSaveAsAction {
     372
     373        public SaveSessionAction() {
     374            super(false, false);
     375        }
     376
    372377        @Override
    373378        public void actionPerformed(ActionEvent e) {
Note: See TracChangeset for help on using the changeset viewer.