Fixed a problem with multiple connects
This commit is contained in:
parent
22dba2cb27
commit
9bb927d2d2
1 changed files with 8 additions and 8 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue