diff --git a/kupdatenotifier/kupdatenotifier.cpp b/kupdatenotifier/kupdatenotifier.cpp index b7239b8c..434dd9b4 100644 --- a/kupdatenotifier/kupdatenotifier.cpp +++ b/kupdatenotifier/kupdatenotifier.cpp @@ -204,6 +204,7 @@ void KUpdateNotifier::slotRestartSchedule() void KUpdateNotifier::slotPackage(const uint info, const QString &package_id, const QString &summary) { // qDebug() << Q_FUNC_INFO << info << package_id << summary; + KPackageKitPackage package; package.info = info; package.package_id = package_id; @@ -219,5 +220,6 @@ void KUpdateNotifier::slotErrorCode(const uint code, const QString &details) void KUpdateNotifier::slotFinished(const uint exit, const uint runtime) { // qDebug() << Q_FUNC_INFO << exit << runtime; + m_finished = true; } diff --git a/kupdatenotifier/kupdatenotifier.h b/kupdatenotifier/kupdatenotifier.h index 1b614c25..b7065dc7 100644 --- a/kupdatenotifier/kupdatenotifier.h +++ b/kupdatenotifier/kupdatenotifier.h @@ -41,7 +41,7 @@ class KUpdateNotifier : public KStatusNotifierItem { Q_OBJECT public: - // UpdatesChanged() can be emited multiple times from single cache refresh + // UpdatesChanged() can be emited multiple times after single cache refresh // so tracking the state manually enum UpdateNotifierState { PassiveState = 0, @@ -61,6 +61,7 @@ private Q_SLOTS: void slotPackage(const uint info, const QString &package_id, const QString &summary); void slotErrorCode(const uint code, const QString &details); void slotFinished(const uint exit, const uint runtime); + private: void refreshCache(); QStringList getUpdates();