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
(parent:
e3206fd
)
Checks if the videoWidget exist before resizing it, fix #1328
author
Rafaël Carré
<funman@videolan.org>
Mon, 8 Oct 2007 21:11:50 +0000
(21:11 +0000)
committer
Rafaël Carré
<funman@videolan.org>
Mon, 8 Oct 2007 21:11:50 +0000
(21:11 +0000)
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
77982c1
..
c8d7732
100644
(file)
--- a/
modules/gui/qt4/main_interface.cpp
+++ b/
modules/gui/qt4/main_interface.cpp
@@
-385,7
+385,8
@@
void MainInterface::calculateInterfaceSize()
void MainInterface::resizeEvent( QResizeEvent *e )
{
- videoWidget->widgetSize.setWidth( e->size().width() - addSize.width() );
+ if( videoWidget )
+ videoWidget->widgetSize.setWidth( e->size().width() - addSize.width() );
if( videoWidget && videoIsActive && videoWidget->widgetSize.height() > 1 )
{
SET_WH( videoWidget, e->size().width() - addSize.width(),