Changeset 1991 in josm for trunk/src


Ignore:
Timestamp:
2009-08-23T22:47:36+02:00 (15 years ago)
Author:
Gubaer
Message:

fixed #2000: ID in selection lists isn't updated after upload until the user does something in the interface

File:
1 edited

Legend:

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

    r1894 r1991  
    2727import org.openstreetmap.josm.Main;
    2828import org.openstreetmap.josm.data.conflict.ConflictCollection;
     29import org.openstreetmap.josm.data.osm.DataSet;
    2930import org.openstreetmap.josm.data.osm.OsmPrimitive;
    3031import org.openstreetmap.josm.gui.ExceptionDialogUtil;
     
    235236        );
    236237        switch(ret) {
    237             case JOptionPane.CLOSED_OPTION: return;
    238             case JOptionPane.CANCEL_OPTION: return;
    239             case 0: synchronizePrimitive(id); break;
    240             case 1: synchronizeDataSet(); break;
    241             default:
    242                 // should not happen
    243                 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret));
     238        case JOptionPane.CLOSED_OPTION: return;
     239        case JOptionPane.CANCEL_OPTION: return;
     240        case 0: synchronizePrimitive(id); break;
     241        case 1: synchronizeDataSet(); break;
     242        default:
     243            // should not happen
     244            throw new IllegalStateException(tr("unexpected return value. Got {0}", ret));
    244245        }
    245246    }
     
    274275        );
    275276        switch(ret) {
    276             case JOptionPane.CLOSED_OPTION: return;
    277             case 1: return;
    278             case 0: synchronizeDataSet(); break;
    279             default:
    280                 // should not happen
    281                 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret));
     277        case JOptionPane.CLOSED_OPTION: return;
     278        case 1: return;
     279        case 0: synchronizeDataSet(); break;
     280        default:
     281            // should not happen
     282            throw new IllegalStateException(tr("unexpected return value. Got {0}", ret));
    282283        }
    283284    }
     
    554555            //
    555556            getEditLayer().cleanupAfterUpload(writer.getProcessedPrimitives());
     557            DataSet.fireSelectionChanged(getEditLayer().data.getSelected());
     558            getEditLayer().fireDataChange();
    556559            if (lastException != null) {
    557560                handleFailedUpload(lastException);
Note: See TracChangeset for help on using the changeset viewer.