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);
}
void MainWindow::OpenRipCD() {
if (!rip_cd_) {
#ifdef HAVE_AUDIOCD
void MainWindow::OpenRipCD() {
if (!rip_cd_) {
rip_cd_.reset(new RipCD);
}
if(rip_cd_->CDIOIsValid()) {
rip_cd_->show();
} else {
QMessageBox cdio_fail(QMessageBox::Critical, tr("Error"), tr("Failed reading CD drive"));
cdio_fail.exec();
}
}
if(rip_cd_->CDIOIsValid()) {
rip_cd_->show();
} else {
QMessageBox cdio_fail(QMessageBox::Critical, tr("Error"), tr("Failed reading CD drive"));
cdio_fail.exec();
}
}
#endif
void MainWindow::AddCDTracks() {
MimeData* data = new MimeData;