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,15 +503,19 @@ public class OsmExtractionUI implements IMapLocationListener {
|
|||
|
||||
public class ExitListener extends WindowAdapter {
|
||||
public void windowClosing(WindowEvent event) {
|
||||
// save preferences
|
||||
DataExtractionSettings settings = DataExtractionSettings.getSettings();
|
||||
settings.saveDefaultLocation(mapPanel.getLatitude(), mapPanel.getLongitude());
|
||||
settings.saveDefaultZoom(mapPanel.getZoom());
|
||||
settings.saveWindowBounds(frame.getBounds());
|
||||
System.exit(0);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
public void exit(){
|
||||
// save preferences
|
||||
DataExtractionSettings settings = DataExtractionSettings.getSettings();
|
||||
settings.saveDefaultLocation(mapPanel.getLatitude(), mapPanel.getLongitude());
|
||||
settings.saveDefaultZoom(mapPanel.getZoom());
|
||||
settings.saveWindowBounds(frame.getBounds());
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue