Don't enable the offset menu item for the metadata row.

This commit is contained in:
Damiano Galassi committed 2017-03-15 11:53:11 +01:00
1 parent 6bebe551b0
commit 3c5aef3124
1 file changed
+3 -2
+3 -2
View File
@@ -464,7 +464,7 @@ static NSDictionary *_detailMonospacedAttr;
return YES;
if (action == @selector(saveAndOptimize:))
if (!self.documentEdited && (self.mp4).hasFileRepresentation)
if (!self.documentEdited && self.mp4.hasFileRepresentation)
return YES;
if (action == @selector(selectMetadataFile:))
@@ -488,7 +488,8 @@ static NSDictionary *_detailMonospacedAttr;
if (action == @selector(sendToExternalApp:))
return YES;
if (action == @selector(showTrackOffsetSheet:) && self.tracksTable.selectedRowIndexes.count == 1 && self.tracksTable.selectedRow != -1)
if (action == @selector(showTrackOffsetSheet:) && self.tracksTable.selectedRowIndexes.count == 1
&& self.tracksTable.selectedRow != -1 && self.tracksTable.selectedRow != 0)
return YES;
if (action == @selector(addChaptersEvery:))