diff options
author | dynaflash <[email protected]> | 2008-01-22 16:01:59 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-01-22 16:01:59 +0000 |
commit | cc9e06d558bd5b33e589c9e9eb0d901654c46b4c (patch) | |
tree | d2721f60ac014be647244643f2193d864701de11 /macosx/ChapterTitles.m | |
parent | 800ac294c1ecf92d4298769e7335cd118f8f21c4 (diff) |
MacGui: Fix issue where selecting the chapter tab can crash the macgui if no valid source is selected
- patch by travistex
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1222 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/ChapterTitles.m')
-rw-r--r-- | macosx/ChapterTitles.m | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/macosx/ChapterTitles.m b/macosx/ChapterTitles.m index 26f71913d..deef414a4 100644 --- a/macosx/ChapterTitles.m +++ b/macosx/ChapterTitles.m @@ -23,6 +23,12 @@ { int i; NSString *chapterString; + + fTitle = title; + + if (!title) + return; + int count = hb_list_count( title->list_chapter ); for( i = 0; i < count; i++ ) @@ -38,7 +44,6 @@ } } - fTitle = title; } - (int)numberOfRowsInTableView:(NSTableView *)aTableView |