From: Jean-Baptiste Kempf Date: Fri, 24 Apr 2009 16:20:58 +0000 (+0200) Subject: Qt4: make the cdda-track option work from the GUI. X-Git-Tag: 1.0.0-rc1~269 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=fcae9e71e8c8dd66c5c5497e73f41022114a499c;p=vlc Qt4: make the cdda-track option work from the GUI. Ref #1800 --- diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp index 325b38c3fa..07f6c90fcb 100644 --- a/modules/gui/qt4/components/open_panels.cpp +++ b/modules/gui/qt4/components/open_panels.cpp @@ -422,9 +422,6 @@ void DiscOpenPanel::updateMRL() /* CDDA */ } else { mrl = "cdda://" + ui.deviceCombo->currentText(); - if( ui.titleSpin->value() > 0 ) { - mrl += QString(" :cdda-track=%1").arg( ui.titleSpin->value() ); - } } fileList << mrl; mrl = ""; @@ -440,6 +437,11 @@ void DiscOpenPanel::updateMRL() QString("%1").arg( ui.subtitlesSpin->value() ); } } + else + { + if( ui.titleSpin->value() > 0 ) + mrl += QString(" :cdda-track=%1").arg( ui.titleSpin->value() ); + } emit mrlUpdated( fileList, mrl ); }