From 35fe4fa7c1a2911238f47399e46a18234aac9f70 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 9 Nov 2020 18:24:08 +0100 Subject: [PATCH] startupfeedback: Properly check if a vector is empty --- effects/startupfeedback/startupfeedback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/startupfeedback/startupfeedback.cpp b/effects/startupfeedback/startupfeedback.cpp index 595bda70ec..d747076e4e 100644 --- a/effects/startupfeedback/startupfeedback.cpp +++ b/effects/startupfeedback/startupfeedback.cpp @@ -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;