Fixed a problem with multiple connects

This commit is contained in:
Michael Mandl 2015-10-26 17:54:06 +01:00
parent 22dba2cb27
commit 9bb927d2d2

View file

@ -23,7 +23,6 @@ void NeuroUI::on_runButton_clicked()
if (m_netLearner == nullptr) if (m_netLearner == nullptr)
{ {
m_netLearner.reset(new NetLearner); m_netLearner.reset(new NetLearner);
}
connect(m_netLearner.get(), &NetLearner::logMessage, this, &NeuroUI::logMessage); connect(m_netLearner.get(), &NetLearner::logMessage, this, &NeuroUI::logMessage);
connect(m_netLearner.get(), &NetLearner::progress, this, &NeuroUI::progress); connect(m_netLearner.get(), &NetLearner::progress, this, &NeuroUI::progress);
@ -32,6 +31,7 @@ void NeuroUI::on_runButton_clicked()
connect(m_netLearner.get(), &NetLearner::finished, this, &NeuroUI::netLearnerFinished); connect(m_netLearner.get(), &NetLearner::finished, this, &NeuroUI::netLearnerFinished);
connect(m_netLearner.get(), &NetLearner::currentNetError, ui->errorPlotter, &ErrorPlotter::addErrorValue); connect(m_netLearner.get(), &NetLearner::currentNetError, ui->errorPlotter, &ErrorPlotter::addErrorValue);
}
m_netLearner->start(); m_netLearner->start();
} }