Mark the document changed if the URL is nil.

This commit is contained in:
Damiano Galassi committed 2016-07-27 13:28:34 +02:00
1 parent 44d1536fe4
commit f3700abf80
1 file changed
+5
+5
View File
@@ -117,8 +117,13 @@
{ {
if (self = [super initWithType:@"Video-MPEG4" error:outError]) { if (self = [super initWithType:@"Video-MPEG4" error:outError]) {
self.mp4 = mp4File; self.mp4 = mp4File;
if (mp4File.URL){
self.fileURL = mp4File.URL; self.fileURL = mp4File.URL;
} }
else {
[self updateChangeCount:NSChangeDone];
}
}
return self; return self;
} }