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

git version control git at videolan.org
Mon Aug 25 08:54:19 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Aug 24 23:57:00 2008 -0700| [1244de84c057bfb39975d311e51092d99f2070b0] | committer: Jean-Baptiste Kempf 

Fix a rare sizing issue ( part of #1775 )

This can happen if you toggle between qt-display-mode too often.

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

 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