]> git.sesse.net Git - vlc/commitdiff
Qt4 - Open Disc: handle dvdsimple
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 2 May 2007 23:30:54 +0000 (23:30 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 2 May 2007 23:30:54 +0000 (23:30 +0000)
modules/gui/qt4/components/open.cpp

index fd118a17a9cb6b787b3bd65a57fbada2358b8ab8..4ed1bd03432217008b4e852234244956dfbaf8ae 100644 (file)
@@ -225,6 +225,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
     BUTTONACT( ui.dvdRadioButton, updateMRL());
     BUTTONACT( ui.vcdRadioButton, updateMRL());
     BUTTONACT( ui.audioCDRadioButton, updateMRL());
+    BUTTONACT( ui.dvdsimple,  updateMRL());
 
     CONNECT( ui.titleSpin, valueChanged(int), this, updateMRL());
     CONNECT( ui.chapterSpin, valueChanged(int), this, updateMRL());
@@ -244,7 +245,11 @@ void DiscOpenPanel::updateMRL()
     QString mrl = "";
     /* DVD */
     if( ui.dvdRadioButton->isChecked() ) {
-        mrl = "dvd://" + ui.deviceCombo->currentText();
+        if( !ui.dvdsimple->isChecked() )
+            mrl = "dvd://";
+        else
+            mrl = "dvdsimple://";
+        mrl += ui.deviceCombo->currentText();
         emit methodChanged( "dvdnav-caching" );
 
         if ( ui.titleSpin->value() > 0 ) {