Commit d4297619 authored by Jakob Leben's avatar Jakob Leben

Qt: main interface, small fixes

parent 964d2459
...@@ -607,7 +607,8 @@ void MainInterface::releaseVideoSlot( void ) ...@@ -607,7 +607,8 @@ void MainInterface::releaseVideoSlot( void )
{ {
videoWidget->release(); videoWidget->release();
restoreStackOldWidget(); if( stackCentralW->currentWidget() == videoWidget )
restoreStackOldWidget();
/* We don't want to have a blank video to popup */ /* We don't want to have a blank video to popup */
stackCentralOldWidget = bgWidget; stackCentralOldWidget = bgWidget;
...@@ -718,8 +719,9 @@ void MainInterface::dockPlaylist( bool p_docked ) ...@@ -718,8 +719,9 @@ void MainInterface::dockPlaylist( bool p_docked )
playlistWidget->setWindowFlags( Qt::Widget ); // Probably a Qt bug here playlistWidget->setWindowFlags( Qt::Widget ); // Probably a Qt bug here
// It would be logical that QStackWidget::addWidget reset the flags... // It would be logical that QStackWidget::addWidget reset the flags...
stackCentralW->addWidget( playlistWidget ); stackCentralW->addWidget( playlistWidget );
stackCentralW->setCurrentWidget( playlistWidget ); showTab( playlistWidget );
} }
playlistVisible = true;
} }
/* /*
......
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