Commit ea179941 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: update discs MRL syntax for Windows

parent 4dc568d5
...@@ -466,6 +466,12 @@ void DiscOpenPanel::updateButtons() ...@@ -466,6 +466,12 @@ void DiscOpenPanel::updateButtons()
#undef setDrive #undef setDrive
#ifndef WIN32
# define LOCALHOST ""
#else
# define LOCALHOST "/"
#endif
/* Update the current MRL */ /* Update the current MRL */
void DiscOpenPanel::updateMRL() void DiscOpenPanel::updateMRL()
{ {
...@@ -476,9 +482,9 @@ void DiscOpenPanel::updateMRL() ...@@ -476,9 +482,9 @@ void DiscOpenPanel::updateMRL()
/* DVD */ /* DVD */
if( ui.dvdRadioButton->isChecked() ) { if( ui.dvdRadioButton->isChecked() ) {
if( !ui.dvdsimple->isChecked() ) if( !ui.dvdsimple->isChecked() )
mrl = "dvd://"; mrl = "dvd://" LOCALHOST;
else else
mrl = "dvdsimple://"; mrl = "dvdsimple://" LOCALHOST;
mrl += ui.deviceCombo->currentText(); mrl += ui.deviceCombo->currentText();
if( !ui.dvdsimple->isChecked() ) if( !ui.dvdsimple->isChecked() )
emit methodChanged( "dvdnav-caching" ); emit methodChanged( "dvdnav-caching" );
...@@ -494,7 +500,7 @@ void DiscOpenPanel::updateMRL() ...@@ -494,7 +500,7 @@ void DiscOpenPanel::updateMRL()
/* VCD */ /* VCD */
} else if ( ui.vcdRadioButton->isChecked() ) { } else if ( ui.vcdRadioButton->isChecked() ) {
mrl = "vcd://" + ui.deviceCombo->currentText(); mrl = "vcd://" LOCALHOST + ui.deviceCombo->currentText();
emit methodChanged( "vcd-caching" ); emit methodChanged( "vcd-caching" );
if( ui.titleSpin->value() > 0 ) { if( ui.titleSpin->value() > 0 ) {
...@@ -503,7 +509,7 @@ void DiscOpenPanel::updateMRL() ...@@ -503,7 +509,7 @@ void DiscOpenPanel::updateMRL()
/* CDDA */ /* CDDA */
} else { } else {
mrl = "cdda://" + ui.deviceCombo->currentText(); mrl = "cdda://" LOCALHOST + ui.deviceCombo->currentText();
emit methodChanged( "cdda-caching" ); emit methodChanged( "cdda-caching" );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment