diff --git a/src/scrobbler/scrobblercache.cpp b/src/scrobbler/scrobblercache.cpp index 5c983c7b6..270252048 100644 --- a/src/scrobbler/scrobblercache.cpp +++ b/src/scrobbler/scrobblercache.cpp @@ -235,7 +235,7 @@ void ScrobblerCache::ClearSent(const QList &list) { for (const quint64 timestamp : list) { if (!scrobbler_cache_.contains(timestamp)) continue; - ScrobblerCacheItemPtr item = scrobbler_cache_.take(timestamp); + ScrobblerCacheItemPtr item = scrobbler_cache_.value(timestamp); item->sent_ = false; }