]> git.sesse.net Git - vlc/commitdiff
macosx: added sanity check to prevent a Cocoa runtime exception
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 11 Nov 2012 14:44:53 +0000 (15:44 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 11 Nov 2012 14:44:53 +0000 (15:44 +0100)
modules/gui/macosx/Windows.m

index 880084230343fa4c405207cb3556bf796db64539..30f61839387e22443abc44ef4615465071e5a6d3 100644 (file)
 
 - (void)setTitle:(NSString *)title
 {
+    if (!title || [title length] < 1)
+        return;
+
     if (b_dark_interface && o_titlebar_view)
         [o_titlebar_view setWindowTitle: title];