From 70df288401ba5b0deee12f2e48d77d247ea2ebda Mon Sep 17 00:00:00 2001
From: dynaflash <dynaflashtech@gmail.com>
Date: Wed, 7 Oct 2009 17:06:07 +0000
Subject: Macgui: fix issue where choosing an srt subtitle file would fail to
 autmatically enable the appropriate srt subtitle widgets.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2873 b64f7644-9d1e-0410-96f1-a4d463321fa5
---
 macosx/HBSubtitles.m | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/macosx/HBSubtitles.m b/macosx/HBSubtitles.m
index ad66e932f..95ffad022 100644
--- a/macosx/HBSubtitles.m
+++ b/macosx/HBSubtitles.m
@@ -366,6 +366,7 @@
     [newSubtitleSourceTrack setObject:displayname forKey:@"sourceTrackName"];
     /* Subtitle Source track type (Source, Srt, etc.) */
     [newSubtitleSourceTrack setObject:@"SRT" forKey:@"sourceTrackType"];
+    [newSubtitleSourceTrack setObject:@"SRT" forKey:@"subtitleSourceTrackType"];
     /* Subtitle Source track type */
     [newSubtitleSourceTrack setObject:filePath forKey:@"sourceSrtFilePath"];
     /* Subtitle Source track popup isPictureSub */ 
@@ -390,6 +391,9 @@
     {
         [newSubtitleSrtTrack setObject:[NSNumber numberWithInt:[subtitleSourceArray count]] forKey:@"subtitleSourceTrackNum"];
     }
+    
+    [newSubtitleSrtTrack setObject:@"SRT" forKey:@"sourceTrackType"];
+    [newSubtitleSrtTrack setObject:@"SRT" forKey:@"subtitleSourceTrackType"];
     /* Subtitle Source track popup language */
     [newSubtitleSrtTrack setObject:displayname forKey:@"subtitleSourceTrackName"];
     /* Subtitle Source track popup isPictureSub */
-- 
cgit v1.2.3