Only create m_update-object if it is configured to update hardware (JSONs and DC).
This commit is contained in:
parent
63dc70dda9
commit
05c7d11ef8
@ -170,13 +170,16 @@ Worker::Worker(int customerNr,
|
|||||||
// TODO: turn object into singleton
|
// TODO: turn object into singleton
|
||||||
instance = this;
|
instance = this;
|
||||||
m_lastFailedUpdateStep = UPDATE_STEP::NONE;
|
m_lastFailedUpdateStep = UPDATE_STEP::NONE;
|
||||||
m_update = new Update(this,
|
|
||||||
QDir::cleanPath(m_workingDirectory + QDir::separator() + m_customerNrStr),
|
if (m_noUpdatePsaHardware == false) {
|
||||||
m_customerNrStr,
|
m_update = new Update(this,
|
||||||
m_branchName,
|
QDir::cleanPath(m_workingDirectory + QDir::separator() + m_customerNrStr),
|
||||||
m_pluginDir,
|
m_customerNrStr,
|
||||||
m_pluginName,
|
m_branchName,
|
||||||
m_workingDirectory);
|
m_pluginDir,
|
||||||
|
m_pluginName,
|
||||||
|
m_workingDirectory);
|
||||||
|
}
|
||||||
|
|
||||||
this->setObjectName("worker-object");
|
this->setObjectName("worker-object");
|
||||||
QDir::setCurrent(m_workingDirectory);
|
QDir::setCurrent(m_workingDirectory);
|
||||||
|
Loading…
Reference in New Issue
Block a user