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);
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user