aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/fileops/fileops.cpp2
-rw-r--r--src/plugins/General/mpris/mpris1/tracklistobject.cpp2
-rw-r--r--src/plugins/General/mpris/mpris2/player2object.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/General/fileops/fileops.cpp b/src/plugins/General/fileops/fileops.cpp
index e14c208f7..245c4fe20 100644
--- a/src/plugins/General/fileops/fileops.cpp
+++ b/src/plugins/General/fileops/fileops.cpp
@@ -194,7 +194,7 @@ void FileOps::execAction(int n)
foreach(PlayListItem *item, items)
{
if (QFile::exists(item->url()) && QFile::remove(item->url()))
- model->removeAt (model->row(item));
+ model->removeAt (model->indexOf(item));
}
}
}
diff --git a/src/plugins/General/mpris/mpris1/tracklistobject.cpp b/src/plugins/General/mpris/mpris1/tracklistobject.cpp
index 5b31fe725..9576a902a 100644
--- a/src/plugins/General/mpris/mpris1/tracklistobject.cpp
+++ b/src/plugins/General/mpris/mpris1/tracklistobject.cpp
@@ -71,7 +71,7 @@ void TrackListObject::DelTrack(int in0)
int TrackListObject::GetCurrentTrack()
{
- return m_model->currentRow();
+ return m_model->currentIndex();
}
int TrackListObject::GetLength()
diff --git a/src/plugins/General/mpris/mpris2/player2object.cpp b/src/plugins/General/mpris/mpris2/player2object.cpp
index 78c77997b..d3dc81171 100644
--- a/src/plugins/General/mpris/mpris2/player2object.cpp
+++ b/src/plugins/General/mpris/mpris2/player2object.cpp
@@ -64,7 +64,7 @@ bool Player2Object::canGoNext() const
bool Player2Object::canGoPrevious() const
{
- return m_pl_manager->currentPlayList()->currentRow() > 0;
+ return m_pl_manager->currentPlayList()->currentIndex() > 0;
}
bool Player2Object::canPause() const