Commit fc9e49be authored by Francois Cartegnie's avatar Francois Cartegnie

Qt4: main_interface: fix exit crash.

Playlist widget could be uninstanciated
parent 7911a920
...@@ -661,7 +661,8 @@ void MainInterface::releaseVideoSlot( void ) ...@@ -661,7 +661,8 @@ void MainInterface::releaseVideoSlot( void )
if( stackCentralW->currentWidget() == videoWidget ) if( stackCentralW->currentWidget() == videoWidget )
restoreStackOldWidget(); restoreStackOldWidget();
else if( playlistWidget->artContainer->currentWidget() == videoWidget ) else if( playlistWidget &&
playlistWidget->artContainer->currentWidget() == videoWidget )
{ {
playlistWidget->artContainer->setCurrentIndex( 0 ); playlistWidget->artContainer->setCurrentIndex( 0 );
stackCentralW->addWidget( videoWidget ); stackCentralW->addWidget( videoWidget );
......
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