vlc | branch: master | Felix Paul Kühne <[email protected]> | Sun Nov 11 15:44:53 2012 +0100| [c96fa88a7429dc85afc80a60f0005c40fc321e1d] | committer: Felix Paul Kühne
macosx: added sanity check to prevent a Cocoa runtime exception > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c96fa88a7429dc85afc80a60f0005c40fc321e1d --- modules/gui/macosx/Windows.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gui/macosx/Windows.m b/modules/gui/macosx/Windows.m index 8800842..30f6183 100644 --- a/modules/gui/macosx/Windows.m +++ b/modules/gui/macosx/Windows.m @@ -270,6 +270,9 @@ - (void)setTitle:(NSString *)title { + if (!title || [title length] < 1) + return; + if (b_dark_interface && o_titlebar_view) [o_titlebar_view setWindowTitle: title]; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
