1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

Moving ifdef inside the function

This commit is contained in:
Andre Siviero 2014-01-23 13:18:35 -02:00
parent 8500dce6b3
commit a827d71f4a

View File

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