Commit 5ecfecb8 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

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

Close #2194
(cherry picked from commit 79579afe)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent bd3ccc93
......@@ -787,7 +787,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