]> git.sesse.net Git - kdenlive/blobdiff - src/monitormanager.cpp
Null pointer fixed when running the config wizard. Just quick&dirty, perhaps someone...
[kdenlive] / src / monitormanager.cpp
index 738a808445224f9044713f8aeb871cd50a92197b..09eb326f91d1e8c8b37eb8eddd8406cbb3ce1a97 100644 (file)
@@ -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"