src/main/java/de/uapcore/sudoku/DocumentHandler.java

changeset 22
06170a0be62a
parent 12
1c62c6009161
--- a/src/main/java/de/uapcore/sudoku/DocumentHandler.java	Tue Jul 28 14:05:04 2020 +0200
+++ b/src/main/java/de/uapcore/sudoku/DocumentHandler.java	Tue Jul 28 14:27:14 2020 +0200
@@ -81,6 +81,7 @@
 
     /**
      * Saves the specified field to a file.
+     * On success, the modified state of all cells is set to false.
      *
      * @param field the field to save
      * @throws IOException if saving fails or the file name has not been set before
@@ -101,6 +102,7 @@
                 }
             }
         }
+        field.setAllCellsModified(false);
     }
 
     /**

mercurial