]> granicus.if.org Git - handbrake/commitdiff
MacGui: don't allow nil chapters titles.
authorDamiano Galassi <damiog@gmail.com>
Mon, 1 Apr 2019 07:13:03 +0000 (09:13 +0200)
committerDamiano Galassi <damiog@gmail.com>
Mon, 1 Apr 2019 07:13:03 +0000 (09:13 +0200)
macosx/HBChapter.m

index 807309e138abee198c1242d84ff3ec6cb83d4e4f..67f72f334d32819f6c4abef0d5fa0095d07bce7b 100644 (file)
     {
         [[self.undo prepareWithInvocationTarget:self] setTitle:_title];
     }
-    _title = title;
+    if (title == nil)
+    {
+        _title = @"";
+    }
+    else
+    {
+        _title = title;
+    }
 }
 
 #pragma mark - NSCopying