Changeset 2025 in josm for trunk/src/org/openstreetmap/josm/actions/ExitAction.java
- Timestamp:
- 2009-09-02T21:17:52+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ExitAction.java
r1677 r2025 21 21 public ExitAction() { 22 22 super(tr("Exit"), "exit", tr("Exit the application."), 23 Shortcut.registerShortcut("system:menuexit", tr("Exit"), KeyEvent.VK_Q, Shortcut.GROUP_MENU), true);23 Shortcut.registerShortcut("system:menuexit", tr("Exit"), KeyEvent.VK_Q, Shortcut.GROUP_MENU), true); 24 24 } 25 25 26 26 public void actionPerformed(ActionEvent e) { 27 if ( !Main.breakBecauseUnsavedChanges()) {27 if (Main.saveUnsavedModifications()) { 28 28 Main.saveGuiGeometry(); 29 29 System.exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.