From 463f4e95cff0e100b4c8c8b5378cfe1b2604c138 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 8 Sep 2019 11:49:28 +0000 Subject: fixed possible regressions git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9068 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/scrobbler/scrobbler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/plugins/General/scrobbler/scrobbler.cpp') diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp index 510f2e6aa..0a8b114f4 100644 --- a/src/plugins/General/scrobbler/scrobbler.cpp +++ b/src/plugins/General/scrobbler/scrobbler.cpp @@ -297,7 +297,7 @@ void Scrobbler::submit() params.insert("method", "track.scrobble"); params.insert("sk", m_session); - QStringList keys = params.keys(); + const QStringList keys = params.keys(); for(const QString &key : qAsConst(keys)) //removes empty keys { if(params.value(key).isEmpty() || params.value(key) == "0") @@ -347,7 +347,8 @@ void Scrobbler::sendNotification(const SongInfo &info) params.insert("method", "track.updateNowPlaying"); params.insert("sk", m_session); - for(const QString &key : qAsConst(params)) //removes empty keys + const QStringList keys = params.keys(); + for(const QString &key : qAsConst(keys)) //removes empty keys { if(params.value(key).isEmpty()) params.remove(key); -- cgit v1.2.3-13-gbd6f