changeset 1712:54a954ee7529 single-point

Make it permissible to setPathFrom(nullptr)
author Chris Cannam
date Thu, 16 May 2019 15:48:07 +0100
parents d32d16e8883f
children 978c143c767f
files data/model/AlignmentModel.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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()));