Commit 2f0d1f89 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

Qt: don't change height if widget doesn't change visibility

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 22d61da5
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment