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:
parent
d07174c1d4
commit
bbf7ff61af
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user