[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [amarok] src/core-impl/collections/support: Fix tracks are 'never played'
From:       Ralf Engels <ralf-engels () gmx ! de>
Date:       2015-06-03 21:58:22
Message-ID: E1Z0Gg2-0007cH-Th () scm ! kde ! org
[Download RAW message or body]

Git commit bc916b4c28383dca5d44efb663014373ca97c69b by Ralf Engels.
Committed on 03/06/2015 at 21:52.
Pushed by rengels into branch 'master'.

Fix tracks are 'never played'

Order of collection was incorrect.
Tracks were found in the file track provider first instead of the
local collection.
Tracks of the type FileTrack usually don't have a collection.

BUG: 343956

M  +1    -1    src/core-impl/collections/support/CollectionManager.cpp

http://commits.kde.org/amarok/bc916b4c28383dca5d44efb663014373ca97c69b

diff --git a/src/core-impl/collections/support/CollectionManager.cpp \
b/src/core-impl/collections/support/CollectionManager.cpp index 1cb46c7..c0a189d \
                100644
--- a/src/core-impl/collections/support/CollectionManager.cpp
+++ b/src/core-impl/collections/support/CollectionManager.cpp
@@ -270,7 +270,7 @@ CollectionManager::slotNewCollection( Collections::Collection* \
newCollection )  {
             d->primaryCollection = newCollection;
             d->collections.insert( 0, pair ); // the primary collection should be \
                the first collection to be searched
-            d->trackProviders.insert( 2, newCollection ); // the primary collection \
should be between the timecode track provider and the local file track provider +     \
d->trackProviders.insert( 1, newCollection ); // the primary collection should be \
between the timecode track provider and the local file track provider  }
         else
         {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic