Changeset 3998 in josm


Ignore:
Timestamp:
2011-03-20T23:26:22+01:00 (14 years ago)
Author:
mjulius
Message:

fix #6127 - Correctly update changeset description when reusing a changeset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java

    r3530 r3998  
    244244            if (cs == null) return;
    245245            if (rbExisting.isSelected()) {
    246                 // create a clone of the selected changeset and make sure
    247                 // we keep the current changeset comment (see #4371)
    248                 cs = new Changeset(cs);
    249                 cs.put("comment", changesetCommentModel.getComment());
    250246                firePropertyChange(SELECTED_CHANGESET_PROP, null, cs);
    251247            }
     
    284280                cbOpenChangesets.setEnabled(false);
    285281                firePropertyChange(SELECTED_CHANGESET_PROP, null, null);
    286             } else {
     282            } else if (rbExisting.isSelected()) {
    287283                cbOpenChangesets.setEnabled(true);
    288284                if (cbOpenChangesets.getSelectedItem() == null) {
     
    291287                Changeset cs = (Changeset)cbOpenChangesets.getSelectedItem();
    292288                if (cs == null) return;
    293                 // create a clone of the selected changeset and make sure
    294                 // we keep the current changeset comment (see #4371)
    295                 cs = new Changeset(cs);
    296                 cs.put("comment", changesetCommentModel.getComment());
     289                changesetCommentModel.setComment(cs.get("comment"));
    297290                firePropertyChange(SELECTED_CHANGESET_PROP, null, cs);
    298291            }
Note: See TracChangeset for help on using the changeset viewer.