Commit c96fa88a authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

macosx: added sanity check to prevent a Cocoa runtime exception

parent 82858095
...@@ -270,6 +270,9 @@ ...@@ -270,6 +270,9 @@
- (void)setTitle:(NSString *)title - (void)setTitle:(NSString *)title
{ {
if (!title || [title length] < 1)
return;
if (b_dark_interface && o_titlebar_view) if (b_dark_interface && o_titlebar_view)
[o_titlebar_view setWindowTitle: title]; [o_titlebar_view setWindowTitle: title];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment