Ignore:
Timestamp:
06/10/08 15:01:27 (16 years ago)
Author:
ra33
Message:

Fixed a couple of minor bugs that popped up in the demo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameIO.java

    r97 r98  
    10331033                SuspendCache();
    10341034                // copy the default .0 and .1 files
    1035                 Frame base;
     1035                Frame base = null;
    10361036                try {
    10371037                        base = LoadFrame(UserSettings.DefaultFrame);
    10381038                } 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) {
    10391043                        base = new Frame();
    10401044                }
     1045
    10411046                ResumeCache();
    10421047
     
    11141119                                        dest = new File(destPath + ++copyNumber + File.separator);
    11151120                                }
    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;
    11171130                        }
    11181131                }
Note: See TracChangeset for help on using the changeset viewer.