Commit 8460356b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix Minimal view switching

This was broken after the extension merge.
Close #3665
(cherry picked from commit 08737f85e0e34e8b75da567054389cc0521327e6)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8ccbd50e
......@@ -133,7 +133,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
* UI and Widgets design
**************************/
setVLCWindowsTitle();
createMainWidget( settings );
/************
* Menu Bar *
......@@ -142,6 +141,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
CONNECT( THEMIM->getIM(), voutListChanged( vout_thread_t **, int ),
this, destroyPopupMenu() );
createMainWidget( settings );
/*********************************
* Create the Systray Management *
*********************************/
......
......@@ -458,7 +458,7 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterface
action = menu->addAction( qtr( "Mi&nimal View" ) );
action->setShortcut( qtr( "Ctrl+H" ) );
action->setCheckable( true );
action->setChecked( !current && (mi->getControlsVisibilityStatus() & CONTROLS_HIDDEN ) );
action->setChecked( (mi->getControlsVisibilityStatus() & CONTROLS_HIDDEN ) );
CONNECT( action, triggered( bool ), mi, toggleMinimalView( bool ) );
CONNECT( mi, minimalViewToggled( bool ), action, setChecked( bool ) );
......
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