comparison main/MainWindow.cpp @ 760:5b4206f7d7d4

Remove model from pan layer when it's about to be deleted, fixing #1035
author Chris Cannam
date Wed, 13 Aug 2014 16:10:36 +0100
parents e2d2ac12577c
children 956134fa9f24
comparison
equal deleted inserted replaced
759:e2d2ac12577c 760:5b4206f7d7d4
4142 4142
4143 if (m_playTarget) { 4143 if (m_playTarget) {
4144 connect(m_fader, SIGNAL(valueChanged(float)), 4144 connect(m_fader, SIGNAL(valueChanged(float)),
4145 m_playTarget, SLOT(setOutputGain(float))); 4145 m_playTarget, SLOT(setOutputGain(float)));
4146 } 4146 }
4147 }
4148
4149 void
4150 MainWindow::modelAboutToBeDeleted(Model *model)
4151 {
4152 if (model == m_panLayer->getModel()) {
4153 if (model == getMainModel()) {
4154 m_panLayer->setModel(0);
4155 } else {
4156 m_panLayer->setModel(getMainModel());
4157 }
4158 }
4159 MainWindowBase::modelAboutToBeDeleted(model);
4147 } 4160 }
4148 4161
4149 void 4162 void
4150 MainWindow::setInstantsNumbering() 4163 MainWindow::setInstantsNumbering()
4151 { 4164 {