Mark the document changed if the URL is nil.
This commit is contained in:
1 parent
44d1536fe4
commit
f3700abf80
1 file changed
+6
-1
@@ -117,7 +117,12 @@
|
|||||||
{
|
{
|
||||||
if (self = [super initWithType:@"Video-MPEG4" error:outError]) {
|
if (self = [super initWithType:@"Video-MPEG4" error:outError]) {
|
||||||
self.mp4 = mp4File;
|
self.mp4 = mp4File;
|
||||||
self.fileURL = mp4File.URL;
|
if (mp4File.URL){
|
||||||
|
self.fileURL = mp4File.URL;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
[self updateChangeCount:NSChangeDone];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|||||||
Reference in new issue
Block a user