fix issue 162
git-svn-id: https://osmand.googlecode.com/svn/trunk@655 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
c970815ac8
commit
e561312188
1 changed files with 11 additions and 6 deletions
|
@ -280,6 +280,7 @@ public class OsmExtractionUI implements IMapLocationListener {
|
|||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
frame.setVisible(false);
|
||||
exit();
|
||||
}
|
||||
});
|
||||
settings.addActionListener(new ActionListener(){
|
||||
|
@ -502,6 +503,11 @@ public class OsmExtractionUI implements IMapLocationListener {
|
|||
|
||||
public class ExitListener extends WindowAdapter {
|
||||
public void windowClosing(WindowEvent event) {
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
public void exit(){
|
||||
// save preferences
|
||||
DataExtractionSettings settings = DataExtractionSettings.getSettings();
|
||||
settings.saveDefaultLocation(mapPanel.getLatitude(), mapPanel.getLongitude());
|
||||
|
@ -509,7 +515,6 @@ public class OsmExtractionUI implements IMapLocationListener {
|
|||
settings.saveWindowBounds(frame.getBounds());
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue