diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2015-02-01 21:22:43 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2015-02-01 21:22:43 +0100 |
commit | 2857f037e79319c6fd4e190e4f5d6279562e2f13 (patch) | |
tree | f0fb01ad9f7dc8384bbc780b1d2ccdb7e1307aa1 /src/library/banshee | |
parent | f2a183cb00ed6af0e46564a13f603d0694cd3118 (diff) |
Added a location compare to find the previewed track in external tables
Diffstat (limited to 'src/library/banshee')
-rw-r--r-- | src/library/banshee/bansheeplaylistmodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library/banshee/bansheeplaylistmodel.cpp b/src/library/banshee/bansheeplaylistmodel.cpp index e018422d8a..208b02369a 100644 --- a/src/library/banshee/bansheeplaylistmodel.cpp +++ b/src/library/banshee/bansheeplaylistmodel.cpp @@ -264,11 +264,13 @@ void BansheePlaylistModel::trackLoaded(QString group, TrackPointer pTrack) { emit(dataChanged(left, right)); } } + m_iPreviewDeckTrackId = -1; if (pTrack) { for (int row = 0; row < rowCount(); ++row) { QUrl rowUrl(getFieldString(index(row, 0), CLM_URI)); if (rowUrl.toLocalFile() == pTrack->getLocation()) { - m_iPreviewDeckTrackId = getFieldString(index(row, 0), CLM_VIEW_ORDER).toInt(); + m_iPreviewDeckTrackId = + getFieldString(index(row, 0), CLM_VIEW_ORDER).toInt(); break; } } |