Browse Source

minor change

Teh-Hai Julian Zheng 7 years ago
parent
commit
90a5333dcb
2 changed files with 1 additions and 3 deletions
  1. 1 1
      src/ui/controller/LoadController.java
  2. 0 2
      src/ui/view/GUI.java

+ 1 - 1
src/ui/controller/LoadController.java

@@ -136,7 +136,7 @@ public class LoadController {
 
 		ArchiveEntry entry = stream.getNextEntry();
 		while (entry != null) {
-
+			entry = stream.getNextEntry();
 		}
 
 		return tmp;

+ 0 - 2
src/ui/view/GUI.java

@@ -1518,7 +1518,6 @@ public class GUI<E> implements CategoryListener {
 				JFileChooser fileChooser = new JFileChooser();
 				JFrame test = new JFrame();
 				FileNameExtensionFilter holonFilter = new FileNameExtensionFilter("Holon Save File(*.holon)", "holon");
-				fileChooser.addChoosableFileFilter(holonFilter);
 				fileChooser.setFileFilter(holonFilter);
 
 				if (fileChooser.showOpenDialog(test) == JFileChooser.APPROVE_OPTION) {
@@ -1564,7 +1563,6 @@ public class GUI<E> implements CategoryListener {
 				JFileChooser fileChooser = new JFileChooser();
 				JFrame test = new JFrame();
 				FileNameExtensionFilter holonFilter = new FileNameExtensionFilter("Holon Save File(*.holon)", "holon");
-				fileChooser.addChoosableFileFilter(holonFilter);
 				fileChooser.setFileFilter(holonFilter);
 
 				if (fileChooser.showSaveDialog(test) == JFileChooser.APPROVE_OPTION) {