Changeset 2191 in josm for trunk/src/org


Ignore:
Timestamp:
2009-09-26T12:25:22+02:00 (15 years ago)
Author:
Gubaer
Message:

fixed #3561: Changeset comment=* is incorrect in list of open changesets in upload dialog

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

Legend:

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

    r2163 r2191  
    100100        public CloseAction() {
    101101            putValue(NAME, tr("Close changesets"));
    102             //putValue(SMALL_ICON, ImageProvider.get("cancel"));
     102            putValue(SMALL_ICON, ImageProvider.get("closechangeset"));
    103103            putValue(SHORT_DESCRIPTION, tr("Close the selected open changesets"));
    104104            refreshEnabledState();
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r2190 r2191  
    857857        }
    858858
    859         public void setUseNew() {
     859        /**
     860         * Sets whether a new changeset is to be used
     861         *
     862         */
     863        public void setUseNewChangeset() {
    860864            rbUseNew.setSelected(true);
    861865        }
    862866
    863         public void setUseExisting() {
     867        /**
     868         * Sets whether an existing changeset is to be used
     869         */
     870        public void setUseExistingChangeset() {
    864871            rbExisting.setSelected(true);
    865872            if (cbOpenChangesets.getSelectedItem() == null && model.getSize() > 0) {
     
    868875        }
    869876
     877        /**
     878         * Replies true if the selected changeset should be closed after the
     879         * next upload
     880         *
     881         * @return true if the selected changeset should be closed after the
     882         * next upload
     883         */
    870884        public boolean isCloseAfterUpload() {
    871885            return cbCloseAfterUpload.isSelected();
     
    903917        class ChangesetListItemStateListener implements ItemListener {
    904918            public void itemStateChanged(ItemEvent e) {
    905 
    906919                Changeset cs = (Changeset)cbOpenChangesets.getSelectedItem();
    907920                if (cs == null) {
     
    919932                } else {
    920933                    southTabbedPane.setTitleAt(1, tr("Tags of changeset {0}", cs.getId()));
    921                     cs.put("comment", cmt.getText());
    922                     southTabbedPane.setTitleAt(1, tr("Tags of changeset {0}", cs.getId()));
    923934                    if (cs.get("created_by") == null) {
    924935                        cs.put("created_by", getDefaultCreatedBy());
     
    949960            public CloseChangesetAction() {
    950961                putValue(NAME, tr("Close"));
     962                putValue(SMALL_ICON, ImageProvider.get("closechangeset"));
    951963                putValue(SHORT_DESCRIPTION, tr("Close the currently selected open changeset"));
    952964                refreshEnabledState();
Note: See TracChangeset for help on using the changeset viewer.