* intf.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
- * $Id: intf.m,v 1.73 2003/05/05 22:04:11 hartman Exp $
+ * $Id: intf.m,v 1.74 2003/05/05 22:23:39 gbazin Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
NSMenuItem * o_lmi;
NSString * o_title;
- if( *ES->psz_desc )
- {
- o_title = [NSApp localizedString: ES->psz_desc];
- }
- else
+ if( !ES->psz_desc || !*ES->psz_desc )
{
char psz_title[ 256 ];
o_title = [NSApp localizedString: psz_title];
}
+ else
+ {
+ o_title = [NSApp localizedString: ES->psz_desc];
+ }
o_lmi = [o_menu addItemWithTitle: o_title
action: pf_callback keyEquivalent: @""];