Commit ed6f66ec authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix qml module versioning

Patch by marco
parent cc28a65b
......@@ -72,4 +72,5 @@ void DiscoverDeclarativePlugin::registerTypes(const char* /*uri*/)
qmlRegisterType<AbstractReviewsBackend>();
qmlRegisterType<Category>();
qmlRegisterType<ResourcesModel>();
qmlProtectModule("org.kde.discover", 2);
}
......@@ -241,8 +241,8 @@ qint64 ResourcesUpdatesModel::secsToLastUpdate() const
void ResourcesUpdatesModel::setTransaction(UpdateTransaction* transaction)
{
m_transaction = transaction;
connect(m_transaction, &UpdateTransaction::finished, this, &ResourcesUpdatesModel::finished);
connect(m_transaction, &UpdateTransaction::finished, this, &ResourcesUpdatesModel::progressingChanged);
connect(transaction, &UpdateTransaction::finished, this, &ResourcesUpdatesModel::finished);
connect(transaction, &UpdateTransaction::finished, this, &ResourcesUpdatesModel::progressingChanged);
Q_EMIT progressingChanged();
}
......
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