1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 20:09:50 +01:00

Included OpenRipCD in a conditional

This commit is contained in:
Andre Siviero 2014-01-23 11:04:30 -02:00
parent d07174c1d4
commit bbf7ff61af

View File

@ -1678,17 +1678,19 @@ void MainWindow::AddStreamAccepted() {
AddToPlaylist(data); AddToPlaylist(data);
} }
void MainWindow::OpenRipCD() { #ifdef HAVE_AUDIOCD
if (!rip_cd_) { void MainWindow::OpenRipCD() {
if (!rip_cd_) {
rip_cd_.reset(new RipCD); rip_cd_.reset(new RipCD);
} }
if(rip_cd_->CDIOIsValid()) { if(rip_cd_->CDIOIsValid()) {
rip_cd_->show(); rip_cd_->show();
} else { } else {
QMessageBox cdio_fail(QMessageBox::Critical, tr("Error"), tr("Failed reading CD drive")); QMessageBox cdio_fail(QMessageBox::Critical, tr("Error"), tr("Failed reading CD drive"));
cdio_fail.exec(); cdio_fail.exec();
} }
} }
#endif
void MainWindow::AddCDTracks() { void MainWindow::AddCDTracks() {
MimeData* data = new MimeData; MimeData* data = new MimeData;