Ignore:
Timestamp:
2008-12-26T00:34:48+01:00 (11 years ago)
Author:
stoecker
Message:

minor cleanup

Location:
trunk/src/org/openstreetmap/josm/actions/audio
Files:
2 edited

Legend:

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

    r1169 r1181  
    2020        super(tr("Back"), "audio-back", tr("Jump back."),
    2121        Shortcut.registerShortcut("audio:back", tr("Audio: {0}", tr("Back")), KeyEvent.VK_F6, Shortcut.GROUP_DIRECT), true);
    22         try {
    23             amount = - Double.parseDouble(Main.pref.get("audio.forwardbackamount","10.0"));
    24         } catch (NumberFormatException e) {
    25             amount = 10.0;
    26         }
     22        amount = -Main.pref.getDouble("audio.forwardbackamount",10.0);
    2723        this.putValue("help", "Action/Back");
    2824    }
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioFwdAction.java

    r1169 r1181  
    2020        super(tr("Forward"), "audio-fwd", tr("Jump forward"),
    2121        Shortcut.registerShortcut("audio:forward", tr("Audio: {0}", tr("Forward")), KeyEvent.VK_F7, Shortcut.GROUP_DIRECT), true);
    22         try {
    23             amount = Double.parseDouble(Main.pref.get("audio.forwardbackamount","10.0"));
    24         } catch (NumberFormatException e) {
    25             amount = 10.0;
    26         }
     22        amount = Main.pref.getDouble("audio.forwardbackamount",10.0);
    2723    }
    2824
Note: See TracChangeset for help on using the changeset viewer.