diff --git a/worker.cpp b/worker.cpp index f307e0d..aa73545 100644 --- a/worker.cpp +++ b/worker.cpp @@ -69,7 +69,8 @@ Worker::Worker(hwinf *hw, , m_filesToUpdate() , m_updateProcessRunning(false) , m_returnCode(0) - , m_progressValue{0} { + , m_progressValue(0) + , m_withoutIsmasDirectPort(false) /* useful for testing */ { QDir::setCurrent(m_workingDirectory); @@ -137,15 +138,24 @@ void Worker::update() { } void Worker::privateUpdate() { - QPushButton *start = qobject_cast(QObject::sender()); - start->setEnabled(false); - - emit stopStartTimer(); - emit disableExit(); m_updateProcessRunning = true; bool sentIsmasLastVersionNotification = false; + //emit appendText("\nRestart APISM ..."); + //startProgressLoop(); + //Command c("systemctl restart apism"); + //if (c.execute("/tmp")) { + // QThread::sleep(10); // give APISM some time to reconnect + // stopProgressLoop(); + // emit replaceLast("Restart APISM ...", UPDATE_STEP_DONE); + //} else { + // stopProgressLoop(); + // emit replaceLast("Restart APISM ...", UPDATE_STEP_FAIL); + //} + + emit disableExit(); + m_returnCode = -1; QDir customerRepository(m_customerRepository); if (!customerRepository.exists()) {