From 89d6f429c436d6c03eb124f3fa750df60c0baa0b Mon Sep 17 00:00:00 2001 From: druid23 Date: Sun, 5 Sep 2010 12:02:10 +0100 Subject: [PATCH] Don't poll for album art when track is stopped. modified: src/playermainwindow.cpp --- src/playermainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/playermainwindow.cpp b/src/playermainwindow.cpp index f34a9c8..ff734cb 100644 --- a/src/playermainwindow.cpp +++ b/src/playermainwindow.cpp @@ -378,7 +378,9 @@ // key if we are going to look for album art later // for now we check length and title this will require further examination later mCurrentStatus.newtrack = true; - if (mCurrentStatus.length == length && !mCurrentStatus.title.isNull() && 0 == QString::compare(mCurrentStatus.title, title)) { + if ( (0 == mCurrentStatus.length || STOP == mCurrentStatus.state) // stopped or null + || // same track as current playing + (mCurrentStatus.length == length && !mCurrentStatus.title.isNull() && 0 == QString::compare(mCurrentStatus.title, title)) ){ mCurrentStatus.newtrack = false; } mCurrentStatus.volume = volume; -- 1.7.9.5