Changeset 98 for trunk/src/org/expeditee/gui/FrameIO.java
- Timestamp:
- 06/10/08 15:01:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameIO.java
r97 r98 1033 1033 SuspendCache(); 1034 1034 // copy the default .0 and .1 files 1035 Frame base ;1035 Frame base = null; 1036 1036 try { 1037 1037 base = LoadFrame(UserSettings.DefaultFrame); 1038 1038 } catch (Exception e) { 1039 } 1040 // The frame may not be accessed for various reasons... in all these 1041 // cases just create a new one 1042 if (base == null) { 1039 1043 base = new Frame(); 1040 1044 } 1045 1041 1046 ResumeCache(); 1042 1047 … … 1114 1119 dest = new File(destPath + ++copyNumber + File.separator); 1115 1120 } 1116 return framesetDirectory.renameTo(dest); 1121 if (!framesetDirectory.renameTo(dest)) { 1122 for (File f : framesetDirectory.listFiles()) { 1123 if (!f.delete()) 1124 return false; 1125 } 1126 if (!framesetDirectory.delete()) 1127 return false; 1128 } 1129 return true; 1117 1130 } 1118 1131 }
Note:
See TracChangeset
for help on using the changeset viewer.