Commit 33000d54 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Make sure the UpdateModel is initialized after switching the view

BUG: 382192
parent 65cbbbe6
......@@ -85,9 +85,9 @@ void UpdateModel::resourceHasProgressed(AbstractResource* res, qreal progress)
void UpdateModel::activityChanged()
{
if (!m_updates || m_updates->isProgressing())
return;
m_updates->prepare();
if (m_updates && !m_updates->isProgressing()) {
m_updates->prepare();
}
setResources(m_updates->toUpdate());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment