From 85d3c3fd046ebd100df1b1bac240d0c1838ad581 Mon Sep 17 00:00:00 2001 From: "Simon A. Eugster" Date: Fri, 18 Mar 2011 07:27:12 +0000 Subject: [PATCH] Null pointer fixed when running the config wizard. Just quick&dirty, perhaps someone can look into the reason for the null pointer? svn path=/trunk/kdenlive/; revision=5498 --- src/monitormanager.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/monitormanager.cpp b/src/monitormanager.cpp index 738a8084..09eb326f 100644 --- a/src/monitormanager.cpp +++ b/src/monitormanager.cpp @@ -183,8 +183,13 @@ void MonitorManager::slotRefreshCurrentMonitor() void MonitorManager::slotUpdateAudioMonitoring() { - m_clipMonitor->render->analyseAudio = KdenliveSettings::monitor_audio(); - m_projectMonitor->render->analyseAudio = KdenliveSettings::monitor_audio(); + // if(...) added since they are 0x0 when the config wizard is running! --Granjow + if (m_clipMonitor) { + m_clipMonitor->render->analyseAudio = KdenliveSettings::monitor_audio(); + } + if (m_projectMonitor) { + m_projectMonitor->render->analyseAudio = KdenliveSettings::monitor_audio(); + } } #include "monitormanager.moc" -- 2.39.2