[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-1/amarok/src
From: Seb Ruiz <seb100 () optusnet ! com ! au>
Date: 2005-05-01 9:14:58
Message-ID: 20050501091458.9A2CA635 () office ! kde ! org
[Download RAW message or body]
CVS commit by seb:
Only replace tracks in party mode if < minimum tracks as specified in the config
M +7 -1 playlist.cpp 1.506
--- kdeextragear-1/amarok/src/playlist.cpp #1.505:1.506
@@ -1978,5 +1978,11 @@ Playlist::removeSelectedItems() //SLOT
if( isParty() )
- addSpecialTracks( list.count(), AmarokConfig::partyType() );
+ {
+ int remainder = childCount() - list.count() - 1;
+ int required = AmarokConfig::partyPreviousCount() + AmarokConfig::partyUpcomingCount() + 1;
+
+ if( required > remainder )
+ addSpecialTracks( required - remainder, AmarokConfig::partyType() );
+ }
updateNextPrev();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic