[vlc-devel] commit: Correctly fix #1746 on Windows. Special for Trax :D ( Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Sep 3 21:22:20 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Wed Sep  3 12:23:52 2008 -0700| [72b4b71133b5406a907fa1f4fcf5a8cb32cd4118] | committer: Jean-Baptiste Kempf 

Correctly fix #1746 on Windows. Special for Trax :D

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72b4b71133b5406a907fa1f4fcf5a8cb32cd4118
---

 modules/gui/qt4/dialogs/open.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp
index df2b56a..35d1d5a 100644
--- a/modules/gui/qt4/dialogs/open.cpp
+++ b/modules/gui/qt4/dialogs/open.cpp
@@ -66,11 +66,15 @@ OpenDialog::OpenDialog( QWidget *parent,
 {
     i_action_flag = _action_flag;
 
-    setWindowModality( Qt::WindowModal );
+    /* Workaround the Win32 Vout that put the video on top at regular times */
+#ifdef WIN32
+    setWindowFlags( Qt::WindowStaysOnTopHint | Qt::Dialog );
+#endif
 
     if( b_selectMode ) /* Select mode */
     {
         i_action_flag = SELECT;
+        setWindowModality( Qt::WindowModal );
     }
 
     /* Basic Creation of the Window */




More information about the vlc-devel mailing list