Changeset 186 in josm


Ignore:
Timestamp:
2007-01-04T22:59:52+01:00 (13 years ago)
Author:
imi
Message:
  • added split way action (thanks Frederik)
  • fixed bug where modified state was reset after each undo (now after ALL undo's)
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/gui/MainMenu.java

    r184 r186  
    2525import org.openstreetmap.josm.actions.SaveAsAction;
    2626import org.openstreetmap.josm.actions.SelectAllAction;
     27import org.openstreetmap.josm.actions.SplitWayAction;
    2728import org.openstreetmap.josm.actions.UndoAction;
    2829import org.openstreetmap.josm.actions.UnselectAllAction;
     
    4748        public final DownloadAction download = new DownloadAction();
    4849        public final Action reverseSegment = new ReverseSegmentAction();
     50        public final Action splitWay = new SplitWayAction();
    4951        public final Action alignInCircle = new AlignInCircleAction();
    5052        public final Action alignInLine = new AlignInLineAction();
     
    8789                editMenu.addSeparator();
    8890                editMenu.add(reverseSegment);
     91                editMenu.add(splitWay);
    8992                editMenu.add(alignInCircle);
    9093                editMenu.add(alignInLine);
  • src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r172 r186  
    201201                c.undoCommand();
    202202                redoCommands.push(c);
    203                 //TODO: Replace with listener scheme
    204                 setModified(uploadedModified);
     203                setModified(uploadedModified || !commands.isEmpty());
    205204                Main.ds.clearSelection();
    206205                fireCommandsChanged();
  • src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java

    r177 r186  
    7676                        setting.ok();
    7777                if (requiresRestart)
    78                         JOptionPane.showMessageDialog(PreferenceDialog.this,tr("You have to restart JOSM for some settings to take effect."));
     78                        JOptionPane.showMessageDialog(Main.parent,tr("You have to restart JOSM for some settings to take effect."));
    7979                Main.parent.repaint();
    8080        }
Note: See TracChangeset for help on using the changeset viewer.