mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 23:29:34 +00:00
Fixed import - need to save the file before setting the address.
This is a specific requirement of how DOS stores addresses.
This commit is contained in:
parent
8d45503f9a
commit
753a8ecbf6
@ -1108,9 +1108,6 @@ public class DiskExplorerTab {
|
||||
FileEntry fileEntry = directory.createFile();
|
||||
fileEntry.setFilename(spec.getTargetFilename());
|
||||
fileEntry.setFiletype(spec.getFiletype());
|
||||
if (fileEntry.needsAddress()) {
|
||||
fileEntry.setAddress(spec.getAddress());
|
||||
}
|
||||
try {
|
||||
fileEntry.setFileData(buffer.toByteArray());
|
||||
} catch (ProdosDiskSizeDoesNotMatchException ex) {
|
||||
@ -1130,6 +1127,9 @@ public class DiskExplorerTab {
|
||||
fileEntry.setFileData(buffer.toByteArray());
|
||||
}
|
||||
}
|
||||
if (fileEntry.needsAddress()) {
|
||||
fileEntry.setAddress(spec.getAddress());
|
||||
}
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
MessageBox box = new MessageBox(shell,
|
||||
|
Loading…
Reference in New Issue
Block a user