[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [Amarok] b4468b7: Do not add tracks with invalid last played time in
From: "Rick W.Chen" <stuffcorpse () archlinux ! us>
Date: 2010-11-30 21:35:58
Message-ID: 20101130213558.B5AFDA60B3 () git ! kde ! org
[Download RAW message or body]
commit b4468b7c4829e39760b5251b48893af586cd20d7
branch master
Author: Rick W. Chen <stuffcorpse@archlinux.us>
Date: Wed Dec 1 08:55:06 2010 +1300
Do not add tracks with invalid last played time in recently played list
diff --git a/src/context/widgets/RecentlyPlayedListWidget.cpp \
b/src/context/widgets/RecentlyPlayedListWidget.cpp index 05a14bf..1054834 100644
--- a/src/context/widgets/RecentlyPlayedListWidget.cpp
+++ b/src/context/widgets/RecentlyPlayedListWidget.cpp
@@ -56,6 +56,8 @@ RecentlyPlayedListWidget::addTrack( const Meta::TrackPtr &track )
{
if( !track )
return;
+ if( !track->lastPlayed().isValid() )
+ return;
const QString &name = track->prettyName();
if( name.isEmpty() )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic