diff src/Analyser.cpp @ 70:5310637392f6

Revert to using three separate tool modes (more like SV). This is less like the proposed design for Tony but better than the previous situation with two incomprehensible toggle buttons.
author Chris Cannam
date Tue, 26 Nov 2013 16:59:31 +0000
parents 3123e32ab5f1
children fc3b62262443
line wrap: on
line diff
--- a/src/Analyser.cpp	Tue Nov 26 14:54:22 2013 +0000
+++ b/src/Analyser.cpp	Tue Nov 26 16:59:31 2013 +0000
@@ -170,5 +170,7 @@
 Analyser::setIntelligentActions(bool on) 
 {
     std::cerr << "toggle setIntelligentActions " << on << std::endl;
-    m_flexiNoteLayer->setIntelligentActions(on);
+    if (m_flexiNoteLayer) {
+        m_flexiNoteLayer->setIntelligentActions(on);
+    }
 }