[vlc-devel] [PATCH] Qt: don't change height if widget doesn't change visibility

Hannes Domani ssbssa at yahoo.de
Sat Feb 27 19:33:11 CET 2016


---
 modules/gui/qt4/main_interface.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index f7dc9de..1c8bc82 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -1012,13 +1012,13 @@ void MainInterface::setMinimalView( bool b_minimal )
     {
         int i_heightChange = 0;
 
-        if( !b_menuBarVisible )
+        if( !b_menuBarVisible && menuBar()->isVisible() )
             i_heightChange += menuBar()->height();
-        if( !b_controlsVisible )
+        if( !b_controlsVisible && controls->isVisible() )
             i_heightChange += controls->height();
         if( !b_statusBarVisible && statusBar()->isVisible() )
             i_heightChange += statusBar()->height();
-        if( !b_inputCVisible )
+        if( !b_inputCVisible && inputC->isVisible() )
             i_heightChange += inputC->height();
 
         if( i_heightChange != 0 )
-- 
2.7.1



More information about the vlc-devel mailing list