[vlc-commits] commit: Qt: Block extended filter to not appear off-screen ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Mon May 17 17:48:57 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 17 17:47:13 2010 +0200| [63e9989e5b0a6677cc742374ae27f9fa02aa21b5] | committer: 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: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=63e9989e5b0a6677cc742374ae27f9fa02aa21b5
---

 modules/gui/qt4/dialogs/extended.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs/extended.cpp b/modules/gui/qt4/dialogs/extended.cpp
index 37c3558..8fa1653 100644
--- a/modules/gui/qt4/dialogs/extended.cpp
+++ b/modules/gui/qt4/dialogs/extended.cpp
@@ -87,12 +87,12 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
     CONNECT( closeButton, clicked(), this, close() );
 
     /* 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 ) );
 
         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() );
         else
             move ( 450 , 0 );



More information about the vlc-commits mailing list