- Timestamp:
- 2008-01-03T23:21:51+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
r444 r510 161 161 e.printStackTrace(); 162 162 JOptionPane.showMessageDialog(Main.parent, tr("An error occurred while saving.")+"\n"+e.getMessage()); 163 } 164 try { 165 // if the file save failed, then the tempfile will not 166 // be deleted. So, restore the backup if we made one. 167 if (tmpFile != null && tmpFile.exists()) { 168 copy(tmpFile, file); 169 } 170 } catch (IOException e) { 171 e.printStackTrace(); 172 JOptionPane.showMessageDialog(Main.parent, tr("An error occurred while restoring backup file.")+"\n"+e.getMessage()); 163 164 try { 165 // if the file save failed, then the tempfile will not 166 // be deleted. So, restore the backup if we made one. 167 if (tmpFile != null && tmpFile.exists()) { 168 copy(tmpFile, file); 169 } 170 } catch (IOException e2) { 171 e2.printStackTrace(); 172 JOptionPane.showMessageDialog(Main.parent, tr("An error occurred while restoring backup file.")+"\n"+e2.getMessage()); 173 } 173 174 } 174 175 }
Note:
See TracChangeset
for help on using the changeset viewer.