diff data/model/AlignmentModel.cpp @ 1712:54a954ee7529 single-point

Make it permissible to setPathFrom(nullptr)
author Chris Cannam
date Thu, 16 May 2019 15:48:07 +0100
parents 28f9ff7864c6
children 78fe29adfd16
line wrap: on
line diff
--- a/data/model/AlignmentModel.cpp	Thu May 16 15:47:31 2019 +0100
+++ b/data/model/AlignmentModel.cpp	Thu May 16 15:48:07 2019 +0100
@@ -373,6 +373,10 @@
 
     m_rawPath = rawpath;
 
+    if (!m_rawPath) {
+        return;
+    }
+
     connect(m_rawPath, SIGNAL(modelChanged()),
             this, SLOT(pathChanged()));