comparison 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
comparison
equal deleted inserted replaced
1711:d32d16e8883f 1712:54a954ee7529
371 if (m_rawPath) m_rawPath->aboutToDelete(); 371 if (m_rawPath) m_rawPath->aboutToDelete();
372 delete m_rawPath; 372 delete m_rawPath;
373 373
374 m_rawPath = rawpath; 374 m_rawPath = rawpath;
375 375
376 if (!m_rawPath) {
377 return;
378 }
379
376 connect(m_rawPath, SIGNAL(modelChanged()), 380 connect(m_rawPath, SIGNAL(modelChanged()),
377 this, SLOT(pathChanged())); 381 this, SLOT(pathChanged()));
378 382
379 connect(m_rawPath, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t)), 383 connect(m_rawPath, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t)),
380 this, SLOT(pathChangedWithin(sv_frame_t, sv_frame_t))); 384 this, SLOT(pathChangedWithin(sv_frame_t, sv_frame_t)));