Changeset View
Changeset View
Standalone View
Standalone View
notifier/DiscoverNotifier.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | |||||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | void DiscoverNotifier::updateStatusNotifier() | 76 | void DiscoverNotifier::updateStatusNotifier() | ||
77 | { | 77 | { | ||
78 | uint securityCount = 0; | 78 | uint securityCount = 0; | ||
79 | for (BackendNotifierModule* module: m_backends) | 79 | for (BackendNotifierModule* module: m_backends) | ||
80 | securityCount += module->securityUpdatesCount(); | 80 | securityCount += module->securityUpdatesCount(); | ||
81 | 81 | | |||
82 | uint count = securityUpdatesCount(); | 82 | uint count = securityCount; | ||
83 | foreach(BackendNotifierModule* module, m_backends) | 83 | foreach(BackendNotifierModule* module, m_backends) | ||
84 | count += module->updatesCount(); | 84 | count += module->updatesCount(); | ||
85 | 85 | | |||
86 | if (m_count == count && m_securityCount == securityCount) | 86 | if (m_count == count && m_securityCount == securityCount) | ||
87 | return; | 87 | return; | ||
88 | 88 | | |||
89 | if (state() != NoUpdates && m_count >= count) { | 89 | if (state() != NoUpdates && m_count >= count) { | ||
90 | m_timer.start(); | 90 | m_timer.start(); | ||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |