Commit a2456183 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

update: close the application if we are not running a transaction

Otherwise the process would linger forever unnecessarily.

CCBUG: 434158
parent a3e6fd43
......@@ -36,6 +36,12 @@ void DiscoverUpdate::start()
auto transaction = m_resourcesUpdatesModel->transaction();
if (!transaction) {
qWarning() << "No updates available, exiting";
connect(transaction, &Transaction::statusChanged, this, &DiscoverUpdate::transactionStatusChanged);
qDebug() << "go!" << transaction;
Supports Markdown
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