]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.cpp
Start of the work for the audio/video/subs synchronisation
[vlc] / modules / gui / qt4 / qt4.cpp
index fa2b2792ea66dd1090aeb051f93f62706814ad0d..ccfd614167de201df1f9c610f6c4e4f11ff540e4 100644 (file)
@@ -294,7 +294,8 @@ static void Init( intf_thread_t *p_intf )
      * see commits 21610 21622 21654 for reference */
 
     /* If you don't have a gconftool-2 binary, you should comment this line */
-    QApplication::setDesktopSettingsAware( false );
+    if( strcmp( qVersion(), "4.4.0" ) < 0 ) /* fixed in Qt 4.4.0 */
+        QApplication::setDesktopSettingsAware( false );
 #endif
 
     /* Start the QApplication here */
@@ -346,7 +347,7 @@ static void Init( intf_thread_t *p_intf )
     /* Start playing if needed */
     if( !p_intf->pf_show_dialog && p_intf->b_play )
     {
-        playlist_Control( THEPL, PLAYLIST_AUTOPLAY, VLC_FALSE );
+        playlist_Control( THEPL, PLAYLIST_PLAY, VLC_FALSE );
     }
 
     /* Explain to the core how to show a dialog :D */
@@ -383,7 +384,7 @@ static void Init( intf_thread_t *p_intf )
 
     /* Destroy first the main interface because it is connected to some slots
        in the MainInputManager */
-    if( p_intf->p_sys->p_mi ) delete p_intf->p_sys->p_mi;
+    delete p_intf->p_sys->p_mi;
 
     /* Destroy then other windows, because some are connected to some slots
        in the MainInputManager */