Commit e4f5b367 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix switching to minimalView behaviour

Especially when playlist is opened.
parent 8f17ce9c
...@@ -734,22 +734,13 @@ void MainInterface::dockPlaylist( bool p_docked ) ...@@ -734,22 +734,13 @@ void MainInterface::dockPlaylist( bool p_docked )
void MainInterface::toggleMinimalView( bool b_switch ) void MainInterface::toggleMinimalView( bool b_switch )
{ {
if( i_visualmode == 0 ) if( i_visualmode == 0 )
{ /* NORMAL MODE then */ {
if( !videoWidget || stackCentralW->currentWidget() != videoWidget ) if( stackCentralW->currentWidget() == bgWidget )
{
showBg();
}
else
{ {
/* If video is visible, then toggle the status of bgWidget */ if( stackCentralW->height() < 16 )
//FIXME {
//bgWasVisible = !bgWasVisible; resizeStack( stackCentralW->width(), 100 );
/* if( stackCentralOldState == BACK G_TAB ) }
stackCentralOldState = HID DEN_TAB;
else
stackCentralOldState = BACK G_TAB;
*/
} }
} }
...@@ -1055,17 +1046,6 @@ void MainInterface::dragLeaveEvent(QDragLeaveEvent *event) ...@@ -1055,17 +1046,6 @@ void MainInterface::dragLeaveEvent(QDragLeaveEvent *event)
************************************************************************/ ************************************************************************/
void MainInterface::customEvent( QEvent *event ) void MainInterface::customEvent( QEvent *event )
{ {
#if 0
if( event->type() == PLDockEvent_Type )
{
PlaylistDialog::killInstance();
playlistEmbeddedFlag = true;
menuBar()->clear();
QVLCMenu::createMenuBar(this, p_intf, true, visualSelectorEnabled);
togglePlaylist();
}
#endif
/*else */
if ( event->type() == (int)SetVideoOnTopEvent_Type ) if ( event->type() == (int)SetVideoOnTopEvent_Type )
{ {
SetVideoOnTopQtEvent* p_event = (SetVideoOnTopQtEvent*)event; SetVideoOnTopQtEvent* p_event = (SetVideoOnTopQtEvent*)event;
......
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