From c69d8e376a562cf521539a0f2f5b0387932ce3e1 Mon Sep 17 00:00:00 2001 From: Carl Pillot Date: Fri, 5 Jul 2013 14:29:21 -0700 Subject: [PATCH 1/2] Commented out debug statement causing compilation failure on OSX. --- src/dlgprefsound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlgprefsound.cpp b/src/dlgprefsound.cpp index 920c6a6282f..aa651d57cfd 100644 --- a/src/dlgprefsound.cpp +++ b/src/dlgprefsound.cpp @@ -102,8 +102,8 @@ DlgPrefSound::DlgPrefSound(QWidget *pParent, SoundManager *pSoundManager, connect(m_pMasterLatency, SIGNAL(valueChanged(double)), this, SLOT(masterLatencyChanged(double))); - qDebug() << "RLimit Cur " << RLimit::getCurRtPrio(); - qDebug() << "RLimit Max " << RLimit::getMaxRtPrio(); + //qDebug() << "RLimit Cur " << RLimit::getCurRtPrio(); + //qDebug() << "RLimit Max " << RLimit::getMaxRtPrio(); #ifdef __LINUX__ if (RLimit::isRtPrioAllowed()) From 023bbfc86cc7a391f882fd05b04e9ce3f25fe5d4 Mon Sep 17 00:00:00 2001 From: Carl Pillot Date: Fri, 5 Jul 2013 16:34:40 -0700 Subject: [PATCH 2/2] Widened scope of #ifdef to include all Linux specific code. --- src/dlgprefsound.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dlgprefsound.cpp b/src/dlgprefsound.cpp index aa651d57cfd..fe14ce796aa 100644 --- a/src/dlgprefsound.cpp +++ b/src/dlgprefsound.cpp @@ -102,15 +102,15 @@ DlgPrefSound::DlgPrefSound(QWidget *pParent, SoundManager *pSoundManager, connect(m_pMasterLatency, SIGNAL(valueChanged(double)), this, SLOT(masterLatencyChanged(double))); - //qDebug() << "RLimit Cur " << RLimit::getCurRtPrio(); - //qDebug() << "RLimit Max " << RLimit::getMaxRtPrio(); - #ifdef __LINUX__ - if (RLimit::isRtPrioAllowed()) -#endif // __LINUX__ - { + qDebug() << "RLimit Cur " << RLimit::getCurRtPrio(); + qDebug() << "RLimit Max " << RLimit::getMaxRtPrio(); + + if (RLimit::isRtPrioAllowed()) { limitsHint->hide(); } +#endif // __LINUX__ + } DlgPrefSound::~DlgPrefSound() {