git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5e0254c
)
[Qt] Fix a crash when toggling minimalView when --no-embedded-video.
author
Jean-Baptiste Kempf
<jb@videolan.org>
Tue, 21 Oct 2008 07:35:44 +0000
(09:35 +0200)
committer
Jean-Baptiste Kempf
<jb@videolan.org>
Tue, 21 Oct 2008 07:35:44 +0000
(09:35 +0200)
Close #2194
modules/gui/qt4/main_interface.cpp
patch
|
blob
|
history
diff --git
a/modules/gui/qt4/main_interface.cpp
b/modules/gui/qt4/main_interface.cpp
index
9915cdf
..
1ce149e
100644
(file)
--- a/
modules/gui/qt4/main_interface.cpp
+++ b/
modules/gui/qt4/main_interface.cpp
@@
-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 */