Changeset 2447 in josm for trunk


Ignore:
Timestamp:
2009-11-13T12:27:52+01:00 (12 years ago)
Author:
Gubaer
Message:

fixed #3897: Previous changeset comment gets overwritten

File:
1 edited

Legend:

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

    r2358 r2447  
    364364    protected String getUploadComment() {
    365365        switch(southTabbedPane.getSelectedIndex()) {
    366             case 0:
    367                 return pnlChangesetSelection.getUploadComment();
    368             case 1:
    369                 TagModel tm = tagEditorPanel.getModel().get("comment");
    370                 return tm == null? "" : tm.getValue();
     366        case 0:
     367            return pnlChangesetSelection.getUploadComment();
     368        case 1:
     369            TagModel tm = tagEditorPanel.getModel().get("comment");
     370            return tm == null? "" : tm.getValue();
    371371        }
    372372        return "";
     
    953953                    }
    954954                    tagEditorPanel.getModel().initFromPrimitive(cs);
     955                    if (cs.get("comment") != null) {
     956                        cmt.setText(cs.get("comment"));
     957                    }
    955958                }
    956959            }
Note: See TracChangeset for help on using the changeset viewer.