Commit 79579afe authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

[Qt] Fix a crash when toggling minimalView when --no-embedded-video.

Close #2194
parent 5e0254ce
......@@ -774,7 +774,7 @@ void MainInterface::toggleMinimalView()
if( i_visualmode != QT_ALWAYS_VIDEO_MODE &&
i_visualmode != QT_MINIMAL_MODE )
{ /* NORMAL MODE then */
if( videoWidget->isHidden() ) emit askBgWidgetToToggle();
if( !videoWidget || videoWidget->isHidden() ) emit askBgWidgetToToggle();
else
{
/* If video is visible, then toggle the status of bgWidget */
......
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