Changeset 1516 for trunk/src/org/apollo/widgets/SampledTrack.java
- Timestamp:
- 03/10/20 16:00:19 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/apollo/widgets/SampledTrack.java
r1434 r1516 814 814 815 815 if (trackModel != null && trackModel.getFilepath() != null && 816 trackModel. equals(f.getPath())) {816 trackModel.getFilepath().equals(f.getPath())) { 817 817 818 818 // already have loaded … … 968 968 // If saving for the file time then get a filename 969 969 if (trackModel.getFilepath() == null) { 970 File audioResource = ResourceManager.getAudioResource(localFileName, DisplayController.getCurrentFrame()); 970 Frame parentFrame = this.getParentFrame(); 971 File audioResource = ResourceManager.getAudioUnusedFilename(localFileName, parentFrame); 971 972 trackModel.setFilepath(audioResource.getAbsolutePath()); 972 973 loadFilenameArgument = localFileName; // set to now local, next load will be local … … 1060 1061 //File oldLocalFile = new File(AudioPathManager.AUDIO_HOME_DIRECTORY + localFileName); 1061 1062 File oldLocalFile = ResourceManager.getAudioResource(localFileName, getParentFrame()); 1063 1064 if (oldLocalFile == null) { 1065 //It was never saved and therefore does not need to be deleted. 1066 return; 1067 } 1068 1062 1069 if (oldLocalFile.isFile() && oldLocalFile.exists()) { 1063 1070 try {
Note:
See TracChangeset
for help on using the changeset viewer.