Commit 63e9989e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Block extended filter to not appear off-screen

For some reasons, only Qt/Win32 is affected.
Close #3612
(cherry picked from commit e0ff545ec7982865d7a27e3ffa092aba1e59c3f4)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 30ef0221
...@@ -87,12 +87,12 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf ) ...@@ -87,12 +87,12 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
CONNECT( closeButton, clicked(), this, close() ); CONNECT( closeButton, clicked(), this, close() );
/* Restore geometry or move this dialog on the left pane of the MI */ /* Restore geometry or move this dialog on the left pane of the MI */
if( !restoreGeometry(getSettings()->value("EPanel/geometry").toByteArray())) if( !restoreGeometry( getSettings()->value("EPanel/geometry").toByteArray() ) )
{ {
resize( QSize( 400, 280 ) ); resize( QSize( 400, 280 ) );
MainInterface *p_mi = p_intf->p_sys->p_mi; MainInterface *p_mi = p_intf->p_sys->p_mi;
if( p_mi ) if( p_mi && p_mi->x() > 50 )
move( ( p_mi->x() - frameGeometry().width() - 10 ), p_mi->y() ); move( ( p_mi->x() - frameGeometry().width() - 10 ), p_mi->y() );
else else
move ( 450 , 0 ); move ( 450 , 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