Ignore:
Timestamp:
2011-10-12T12:09:07+02:00 (13 years ago)
Author:
boman
Message:

two small bugfixes; tickets #6584 and #6927

Location:
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java

    r26215 r26838  
    250250            }
    251251
     252            // load the preference for the clocksystem (12h/24h)
     253            ClockSystem clockSystem = ClockSystem.valueOf(Main.pref.get("ohe.clocksystem",
     254                    ClockSystem.getClockSystem(Locale.getDefault()).toString()));
     255
    252256            JCheckBox useTwelveHourClock = new JCheckBox(tr("Display clock in 12h mode."),
    253                     ClockSystem.getClockSystem(Locale.getDefault()) == ClockSystem.TWELVE_HOURS);
     257                    clockSystem == ClockSystem.TWELVE_HOURS);
    254258
    255259            JPanel dlgPanel = new JPanel(new GridBagLayout());
     
    280284            if (keyToEdit == null)
    281285                return;
     286
     287            // save the value for the clocksystem (12h/24h)
     288            Main.pref.put("ohe.clocksystem", (useTwelveHourClock.isSelected() ? ClockSystem.TWELVE_HOURS
     289                    : ClockSystem.TWENTYFOUR_HOURS).toString());
    282290
    283291            OheDialogPanel panel = new OheDialogPanel(OhePlugin.this, keyToEdit, valuesToEdit,
  • applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/TimeRect.java

    r26002 r26838  
    234234    public void mouseReleased(MouseEvent evt) {
    235235        transformType = -1;
     236        if (evt.isPopupTrigger()) {
     237            showMenu(evt);
     238        }
    236239    }
    237240
Note: See TracChangeset for help on using the changeset viewer.