From a827d71f4a2cc148168259d2334a16879251d665 Mon Sep 17 00:00:00 2001 From: Andre Siviero Date: Thu, 23 Jan 2014 13:18:35 -0200 Subject: [PATCH] Moving ifdef inside the function --- src/ui/mainwindow.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index c6f9c77e0..55a262977 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -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;