Commit 35fe4fa7 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

startupfeedback: Properly check if a vector is empty

parent e398a7cd
...@@ -250,7 +250,7 @@ void StartupFeedbackEffect::gotRemoveStartup(const KStartupInfoId& id, const KSt ...@@ -250,7 +250,7 @@ void StartupFeedbackEffect::gotRemoveStartup(const KStartupInfoId& id, const KSt
{ {
Q_UNUSED( data ) Q_UNUSED( data )
m_startups.remove(id); m_startups.remove(id);
if (m_startups.count() == 0) { if (m_startups.isEmpty()) {
m_currentStartup = KStartupInfoId(); // null m_currentStartup = KStartupInfoId(); // null
stop(); stop();
return; return;
......
Markdown is supported
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