summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2021-03-05 18:47:22 +0100
committerDamiano Galassi <[email protected]>2021-03-05 18:47:22 +0100
commit9c8dfd09c53aba2467040812fb5e59bbc81a057c (patch)
treeb3d45ee77461eaaa4d48979b70725dd4c93e158e
parent454662827eadb52cbefbfe67d77724ceba155b5e (diff)
MacGui: do not validate settings of the 'None' subtitles track.
-rw-r--r--macosx/HBSubtitlesTrack.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/HBSubtitlesTrack.m b/macosx/HBSubtitlesTrack.m
index e35539942..b19462ac1 100644
--- a/macosx/HBSubtitlesTrack.m
+++ b/macosx/HBSubtitlesTrack.m
@@ -70,6 +70,11 @@ static NSArray *_languagesArray = nil;
HBTitleSubtitlesTrack *sourceTrack = [_dataSource sourceTrackAtIndex:_sourceTrackIdx];
self.type = sourceTrack.type;
+ if (_sourceTrackIdx == 0)
+ {
+ return;
+ }
+
if (!hb_subtitle_can_burn(_type))
{
// the source track cannot be burned in, so uncheck the widget