Commit 62ceeabf authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Cosmetic.

parent a28bdff5
...@@ -425,11 +425,10 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current ) ...@@ -425,11 +425,10 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current )
{ {
vector<int> objects; vector<int> objects;
vector<const char *> varnames; vector<const char *> varnames;
vlc_object_t *p_object; vlc_object_t *p_aout;
input_thread_t *p_input; input_thread_t *p_input;
if( !current ) if( !current ) current = new QMenu();
current = new QMenu();
if( current->isEmpty() ) if( current->isEmpty() )
{ {
...@@ -443,14 +442,14 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current ) ...@@ -443,14 +442,14 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current )
p_input = THEMIM->getInput(); p_input = THEMIM->getInput();
if( p_input ) if( p_input )
vlc_object_yield( p_input ); vlc_object_yield( p_input );
p_object = ( vlc_object_t * ) vlc_object_find( p_intf, p_aout = ( vlc_object_t * ) vlc_object_find( p_intf,
VLC_OBJECT_AOUT, VLC_OBJECT_AOUT,
FIND_ANYWHERE ); FIND_ANYWHERE );
AudioAutoMenuBuilder( p_object, p_input, objects, varnames ); AudioAutoMenuBuilder( p_aout, p_input, objects, varnames );
if( p_object ) if( p_aout )
vlc_object_release( p_object ); vlc_object_release( p_aout );
if( p_input ) if( p_input )
vlc_object_release( p_input ); vlc_object_release( p_input );
...@@ -468,8 +467,7 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current ) ...@@ -468,8 +467,7 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current )
vector<int> objects; vector<int> objects;
vector<const char *> varnames; vector<const char *> varnames;
if( !current ) if( !current ) current = new QMenu();
current = new QMenu();
if( current->isEmpty() ) if( current->isEmpty() )
{ {
...@@ -519,10 +517,7 @@ QMenu *QVLCMenu::NavigMenu( intf_thread_t *p_intf, QMenu *menu ) ...@@ -519,10 +517,7 @@ QMenu *QVLCMenu::NavigMenu( intf_thread_t *p_intf, QMenu *menu )
vector<int> objects; vector<int> objects;
vector<const char *> varnames; vector<const char *> varnames;
if( !menu ) if( !menu ) menu = new QMenu();
{
menu = new QMenu();
}
if( menu->isEmpty() ) if( menu->isEmpty() )
{ {
...@@ -599,7 +594,8 @@ QMenu *QVLCMenu::HelpMenu( QMenu *current ) ...@@ -599,7 +594,8 @@ QMenu *QVLCMenu::HelpMenu( QMenu *current )
addDPStaticEntry( menu, qtr( "Help..." ) , "", addDPStaticEntry( menu, qtr( "Help..." ) , "",
":/pixmaps/menus_help_16px.png", SLOT( helpDialog() ), "F1" ); ":/pixmaps/menus_help_16px.png", SLOT( helpDialog() ), "F1" );
#ifdef UPDATE_CHECK #ifdef UPDATE_CHECK
addDPStaticEntry( menu, qtr( "Check for updates..." ) , "", "", SLOT( updateDialog() ), ""); addDPStaticEntry( menu, qtr( "Check for updates..." ) , "", "",
SLOT( updateDialog() ), "");
#endif #endif
menu->addSeparator(); menu->addSeparator();
addDPStaticEntry( menu, qtr( I_MENU_ABOUT ), "", "", SLOT( aboutDialog() ), addDPStaticEntry( menu, qtr( I_MENU_ABOUT ), "", "", SLOT( aboutDialog() ),
...@@ -915,8 +911,7 @@ QMenu * QVLCMenu::Populate( intf_thread_t *p_intf, ...@@ -915,8 +911,7 @@ QMenu * QVLCMenu::Populate( intf_thread_t *p_intf,
bool append ) bool append )
{ {
QMenu *menu = current; QMenu *menu = current;
if( !menu ) if( !menu ) menu = new QMenu();
menu = new QMenu();
/* Disable all non static entries */ /* Disable all non static entries */
QAction *p_action; QAction *p_action;
......
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