Remote: jdoc + description + some fixes:
[jvcard.git] / src / be / nikiroo / jvcard / Card.java
index d550ad4a6dc00df7009c83b580e079eb2ead86a1..d2567a496237c159546fa40f46015cebc241223b 100644 (file)
@@ -103,6 +103,7 @@ public class Card extends BaseClass<Contact> {
 
                if (this.file != null
                                && file.getCanonicalPath().equals(this.file.getCanonicalPath())) {
+                       lastModified = file.lastModified();
                        setPristine();
                }
 
@@ -227,6 +228,6 @@ public class Card extends BaseClass<Contact> {
 
        @Override
        public String getState() {
-               return "" + name + format;
+               return ("" + name + format).replace(' ', '_');
        }
 }