Mercurial > hg > svcore
diff data/model/Model.cpp @ 1767:aa0b56d72f27
Ensure the right model ID gets sent with the signal for alignment changes
author | Chris Cannam |
---|---|
date | Thu, 18 Jul 2019 13:17:49 +0100 |
parents | ee7fd2c01d87 |
children | 13bd41bd8a17 |
line wrap: on
line diff
--- a/data/model/Model.cpp Wed Jul 17 14:24:51 2019 +0100 +++ b/data/model/Model.cpp Thu Jul 18 13:17:49 2019 +0100 @@ -47,17 +47,23 @@ if (auto model = ModelById::get(m_alignmentModel)) { disconnect(model.get(), SIGNAL(completionChanged(ModelId)), - this, SIGNAL(alignmentCompletionChanged(ModelId))); + this, SLOT(alignmentModelCompletionChanged(ModelId))); } m_alignmentModel = alignmentModel; if (auto model = ModelById::get(m_alignmentModel)) { connect(model.get(), SIGNAL(completionChanged(ModelId)), - this, SIGNAL(alignmentCompletionChanged(ModelId))); + this, SLOT(alignmentModelCompletionChanged(ModelId))); } } +void +Model::alignmentModelCompletionChanged(ModelId) +{ + emit alignmentCompletionChanged(getId()); +} + const ModelId Model::getAlignment() const {