Commit 46fa336f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

qt4: toggleAdvanced simplifications

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d9c87a31
...@@ -659,16 +659,8 @@ void ControlsWidget::toggleAdvanced() ...@@ -659,16 +659,8 @@ void ControlsWidget::toggleAdvanced()
{ {
if( !advControls ) return; if( !advControls ) return;
if( !b_advancedVisible ) advControls->setVisible( !b_advancedVisible );
{ b_advancedVisible = !b_advancedVisible;
advControls->show();
b_advancedVisible = true;
}
else
{
advControls->hide();
b_advancedVisible = false;
}
emit advancedControlsToggled( b_advancedVisible ); emit advancedControlsToggled( b_advancedVisible );
} }
......
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