From 7aaa7eb5b51c5aa14c13a8000d9e012cbcc08cce Mon Sep 17 00:00:00 2001 From: Bacadam Date: Tue, 18 Jun 2024 22:29:19 +0200 Subject: [PATCH] Wrap qDebug call in a test of sDebug --- src/library/autodj/autodjprocessor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/library/autodj/autodjprocessor.cpp b/src/library/autodj/autodjprocessor.cpp index 97e78244241..8e795496d15 100644 --- a/src/library/autodj/autodjprocessor.cpp +++ b/src/library/autodj/autodjprocessor.cpp @@ -1670,7 +1670,9 @@ void AutoDJProcessor::playerRateChanged(DeckAttributes* pAttributes) { } void AutoDJProcessor::playlistFirstTrackChanged() { - qDebug() << this << "playlistFirstTrackChanged"; + if constexpr (sDebug) { + qDebug() << this << "playlistFirstTrackChanged"; + } if (m_eState != ADJ_DISABLED) { DeckAttributes* pLeftDeck = getLeftDeck(); DeckAttributes* pRightDeck = getRightDeck();