]> git.sesse.net Git - kdenlive/commitdiff
Null pointer fixed when running the config wizard. Just quick&dirty, perhaps someone...
authorSimon A. Eugster <simon.eu@gmail.com>
Fri, 18 Mar 2011 07:27:12 +0000 (07:27 +0000)
committerSimon A. Eugster <simon.eu@gmail.com>
Fri, 18 Mar 2011 07:27:12 +0000 (07:27 +0000)
svn path=/trunk/kdenlive/; revision=5498

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"