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,16 +23,16 @@ 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::progress, this, &NeuroUI::progress);
connect(m_netLearner.get(), &NetLearner::started, this, &NeuroUI::netLearnerStarted);
connect(m_netLearner.get(), &NetLearner::finished, this, &NeuroUI::netLearnerFinished);
connect(m_netLearner.get(), &NetLearner::currentNetError, ui->errorPlotter, &ErrorPlotter::addErrorValue);
} }
connect(m_netLearner.get(), &NetLearner::logMessage, this, &NeuroUI::logMessage);
connect(m_netLearner.get(), &NetLearner::progress, this, &NeuroUI::progress);
connect(m_netLearner.get(), &NetLearner::started, this, &NeuroUI::netLearnerStarted);
connect(m_netLearner.get(), &NetLearner::finished, this, &NeuroUI::netLearnerFinished);
connect(m_netLearner.get(), &NetLearner::currentNetError, ui->errorPlotter, &ErrorPlotter::addErrorValue);
m_netLearner->start(); m_netLearner->start();
} }