- Prevented automatic deletion of drafts.

This commit is contained in:
jendave
2011-08-06 03:50:45 +00:00
parent bef444cd3c
commit f747302cd3
2 changed files with 5 additions and 0 deletions

View File

@@ -398,6 +398,9 @@ public class Gui_NewGame extends JFrame implements NewConstants, NewConstants.LA
}
}//if
//refresh decks:
allDecks = getDecks();
editor.setVisible(true);
dispose();
}

View File

@@ -299,12 +299,14 @@ public class NewDeckIO implements DeckIO {
out.close();
}
}
/*
//delete the files that were not written out: the decks that were deleted
for(File file:files) {
for(int i = 0; i < 8; i++)
new File(file, i + ".dck").delete();
file.delete();
}
*/
} catch(IOException ex) {
ErrorViewer.showError(ex);
throw new RuntimeException("DeckIO : write() error, " + ex.getMessage());