Delete export file if unsuccessful
This commit is contained in:
parent
5c6dc67961
commit
268d4f0ad8
@ -1417,7 +1417,11 @@ public class BasicFrame extends JFrame {
|
||||
|
||||
file = FileHelper.forceExtension(file, RASAeroCommonConstants.FILE_EXTENSION);
|
||||
if (FileHelper.confirmWrite(file, this)) {
|
||||
return saveAsRASAero(file);
|
||||
boolean result = saveAsRASAero(file);
|
||||
if (!result) {
|
||||
file.delete();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user