From a537e1ec3ad94fc1681563b9d937ef4b7e2c2be5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 1 Jul 2015 19:04:40 +0000 Subject: some api changes git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5200 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/mpris/mpris1/tracklistobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/General/mpris/mpris1/tracklistobject.cpp') diff --git a/src/plugins/General/mpris/mpris1/tracklistobject.cpp b/src/plugins/General/mpris/mpris1/tracklistobject.cpp index a7dd70aa9..28720b3a5 100644 --- a/src/plugins/General/mpris/mpris1/tracklistobject.cpp +++ b/src/plugins/General/mpris/mpris1/tracklistobject.cpp @@ -74,7 +74,7 @@ int TrackListObject::GetCurrentTrack() int TrackListObject::GetLength() { - return m_model->numberOfTrack(m_model->count() - 1) + 1; + return m_model->indexOfTrack(m_model->count() - 1) + 1; } QVariantMap TrackListObject::GetMetadata(int in0) @@ -122,7 +122,7 @@ void TrackListObject::playTrack(PlayListTrack *track) void TrackListObject::updateTrackList(int flags) { if(flags & PlayListModel::STRUCTURE) - emit TrackListChange(m_model->numberOfTrack(m_model->count() - 1) + 1); + emit TrackListChange(m_model->indexOfTrack(m_model->count() - 1) + 1); } void TrackListObject::switchPlayList(PlayListModel *cur, PlayListModel *prev) -- cgit v1.2.3-13-gbd6f