Ignore:
Timestamp:
2009-09-03T01:00:52+02:00 (15 years ago)
Author:
Gubaer
Message:

applied #2905: patch by xeen: Add option to disable the new "Move elements" dialog)

File:
1 edited

Legend:

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

    r2025 r2031  
    487487
    488488            while(true) {
    489                 int result = new ExtendedDialog(Main.parent,
     489                ExtendedDialog dialog = new ExtendedDialog(
     490                        Main.parent,
    490491                        tr("Upload these changes?"),
    491                         p,
    492                         new String[] {tr("Upload Changes"), tr("Cancel")},
    493                         new String[] {"upload.png", "cancel.png"}).getValue();
     492                        new String[] {tr("Upload Changes"), tr("Cancel")}
     493                );
     494                dialog.setButtonIcons(new String[] {"upload.png", "cancel.png"});
     495                dialog.setContent(p);
     496                dialog.showDialog();
     497                int result = dialog.getValue();
     498
    494499
    495500                // cancel pressed
Note: See TracChangeset for help on using the changeset viewer.