]> git.sesse.net Git - vlc/commitdiff
Qt4 - SPrefs: again...
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 5 Jan 2008 06:21:15 +0000 (06:21 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 5 Jan 2008 06:21:15 +0000 (06:21 +0000)
modules/gui/qt4/components/simple_preferences.cpp

index 7611b4b820c30dfc15d69c5654003e33720af15d..914f1ffc8b7da5bb4bc06a05faa698ad50f74bf6 100644 (file)
@@ -302,7 +302,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
                 char *psz_dvddiscpath = config_GetPsz( p_intf, "dvd" );
                 char *psz_vcddiscpath = config_GetPsz( p_intf, "vcd" );
                 char *psz_cddadiscpath = config_GetPsz( p_intf, "cd-audio" );
-                if( !strcmp( psz_cddadiscpath, psz_dvddiscpath ) &&
+                if( psz_dvddiscpath && psz_vcddiscpath && psz_cddadiscpath )
+                               if( !strcmp( psz_cddadiscpath, psz_dvddiscpath ) &&
                     !strcmp( psz_dvddiscpath, psz_vcddiscpath ) )
                 {
                     ui.DVDDevice->setText( qfu( psz_dvddiscpath ) );