aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/hal/halplugin.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-04-30 18:29:11 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-04-30 18:29:11 +0000
commitaa167f22dbbeb4c2b680bc860dbc409d5a447864 (patch)
treefd5a0ac440a784de26546e23acf798b042bec75b /src/plugins/General/hal/halplugin.cpp
parent4fa75cf5e6e7f0abe43d68342d1f7ff993c0c3f6 (diff)
downloadqmmp-aa167f22dbbeb4c2b680bc860dbc409d5a447864.tar.gz
qmmp-aa167f22dbbeb4c2b680bc860dbc409d5a447864.tar.bz2
qmmp-aa167f22dbbeb4c2b680bc860dbc409d5a447864.zip
changed playlist API, fixed some issues
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7940 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/hal/halplugin.cpp')
-rw-r--r--src/plugins/General/hal/halplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/General/hal/halplugin.cpp b/src/plugins/General/hal/halplugin.cpp
index 6deabcfd3..dfea19cf9 100644
--- a/src/plugins/General/hal/halplugin.cpp
+++ b/src/plugins/General/hal/halplugin.cpp
@@ -243,7 +243,7 @@ void HalPlugin::addPath(const QString &path)
{
if(item->isGroup())
continue;
- if (dynamic_cast<PlayListTrack *>(item)->url().startsWith(path))
+ if (dynamic_cast<PlayListTrack *>(item)->path().startsWith(path))
return;
}
@@ -267,7 +267,7 @@ void HalPlugin::removePath(const QString &path)
int i = 0;
while (model->count() > 0 && i < model->count())
{
- if (model->isTrack(i) && model->track(i)->url().startsWith(path))
+ if (model->isTrack(i) && model->track(i)->path().startsWith(path))
model->removeTrack(i);
else
++i;