From 3e74c456226dd09e8f4e3eab9014437154a81ac7 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 3 Oct 2015 10:21:48 +0200 Subject: [PATCH] Fised segfault in find best source match method debug printout --- CMakeLists.txt | 4 ++-- sdrbase/settings/preset.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6abd8a712..56ddafd73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,8 +33,8 @@ ENDIF() ############################################################################## #include(${QT_USE_FILE}) -#set( QT_DEFINITIONS "${QT_DEFINITIONS} -DQT_NO_DEBUG_OUTPUT" ) -set( QT_DEFINITIONS "${QT_DEFINITIONS}" ) +set( QT_DEFINITIONS "${QT_DEFINITIONS} -DQT_NO_DEBUG_OUTPUT" ) +#set( QT_DEFINITIONS "${QT_DEFINITIONS}" ) add_definitions(${QT_DEFINITIONS}) if(MSVC) diff --git a/sdrbase/settings/preset.cpp b/sdrbase/settings/preset.cpp index 8c16f710b..3902cc5fd 100644 --- a/sdrbase/settings/preset.cpp +++ b/sdrbase/settings/preset.cpp @@ -228,12 +228,12 @@ const QByteArray* Preset::findBestSourceConfig(const QString& sourceId, { if (itMatchSequence != m_sourceConfigs.end()) // match sequence ? { - qDebug("Preset::findBestSourceConfig: sequence matched: id: %s seq: %d", qPrintable(it->m_sourceId), it->m_sourceSequence); + qDebug("Preset::findBestSourceConfig: sequence matched: id: %s seq: %d", qPrintable(itMatchSequence->m_sourceId), itMatchSequence->m_sourceSequence); return &(itMatchSequence->m_config); } else if (itFirstOfKind != m_sourceConfigs.end()) // match source type ? { - qDebug("Preset::findBestSourceConfig: first of kind matched: id: %s", qPrintable(it->m_sourceId)); + qDebug("Preset::findBestSourceConfig: first of kind matched: id: %s", qPrintable(itFirstOfKind->m_sourceId)); return &(itFirstOfKind->m_config); } else // definitely not found !