Commit 752a2e7c authored by Rémi Duraffort's avatar Rémi Duraffort

qt4: fix two crashes.

Thanks to jb.
parent ddd308dc
...@@ -320,7 +320,7 @@ void QVLCMenu::createMenuBar( MainInterface *mi, ...@@ -320,7 +320,7 @@ void QVLCMenu::createMenuBar( MainInterface *mi,
addMenuToMainbar( ToolsMenu( bar ), qtr( "&Tools" ), bar ); addMenuToMainbar( ToolsMenu( bar ), qtr( "&Tools" ), bar );
/* View menu, a bit different */ /* View menu, a bit different */
BAR_DADD( ViewMenu( p_intf, _menu, mi ), qtr( "V&iew" ), 4 ); BAR_DADD( ViewMenu( p_intf, NULL, mi ), qtr( "V&iew" ), 4 );
addMenuToMainbar( HelpMenu( bar ), qtr( "&Help" ), bar ); addMenuToMainbar( HelpMenu( bar ), qtr( "&Help" ), bar );
...@@ -1034,7 +1034,7 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show ) ...@@ -1034,7 +1034,7 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
else else
{ {
QMenu *bar = menu; // Needed for next macro QMenu *bar = menu; // Needed for next macro
BAR_DADD( ViewMenu( p_intf, _menu, mi ), qtr( "V&iew" ), 4 ); BAR_DADD( ViewMenu( p_intf, NULL, mi ), qtr( "V&iew" ), 4 );
} }
menu->addMenu( submenu ); menu->addMenu( submenu );
......
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