startupfeedback: Properly check if a vector is empty

This commit is contained in:
Aleix Pol 2020-11-09 18:24:08 +01:00 committed by Aleix Pol Gonzalez
parent e398a7cd1a
commit 35fe4fa7c1

View file

@ -250,7 +250,7 @@ void StartupFeedbackEffect::gotRemoveStartup(const KStartupInfoId& id, const KSt
{
Q_UNUSED( data )
m_startups.remove(id);
if (m_startups.count() == 0) {
if (m_startups.isEmpty()) {
m_currentStartup = KStartupInfoId(); // null
stop();
return;