[vlc-devel] commit: Fix a rare sizing issue ( part of #1775 ) (Jean-Baptiste Kempf )

git version control git at videolan.org
Mon Aug 25 16:02:08 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Sun Aug 24 23:57:00 2008 -0700| [c57d9dbc6f91ed0850b9817b2356621bd43b50fc] | committer: Christophe Mutricy 

Fix a rare sizing issue ( part of #1775 )

This can happen if you toggle between qt-display-mode too often.
(cherry picked from commit 1244de84c057bfb39975d311e51092d99f2070b0)

Signed-off-by: Christophe Mutricy <xtophe at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c57d9dbc6f91ed0850b9817b2356621bd43b50fc
---

 modules/gui/qt4/main_interface.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 2652226..7a5b196 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -232,9 +232,10 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     if( i_visualmode == QT_MINIMAL_MODE )
         toggleMinimalView();
 
-    /* Update the geometry TODO: is it useful ?*/
+    /* Update the geometry : It is useful if you switch between
+       qt-display-modes ?*/
     updateGeometry();
-    //    resize( sizeHint() );
+    resize( sizeHint() );
 
     /*****************************************************
      * End everything by creating the Systray Management *




More information about the vlc-devel mailing list