aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mpc/mpcmetadatamodel.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-04-25 18:57:01 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-04-25 18:57:01 +0000
commit93e0bbb4f0c3ae83a2700881f244b9d80fbf952b (patch)
tree9f20cacb64f003282fb8d432291ba2fe286ce8ef /src/plugins/Input/mpc/mpcmetadatamodel.cpp
parent25e440225c1c5cadfb1f3f7b56f6ebde5b91fe16 (diff)
downloadqmmp-93e0bbb4f0c3ae83a2700881f244b9d80fbf952b.tar.gz
qmmp-93e0bbb4f0c3ae83a2700881f244b9d80fbf952b.tar.bz2
qmmp-93e0bbb4f0c3ae83a2700881f244b9d80fbf952b.zip
fixed QString to TagLib::FileName conversion (#852)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6266 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/mpc/mpcmetadatamodel.cpp')
-rw-r--r--src/plugins/Input/mpc/mpcmetadatamodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Input/mpc/mpcmetadatamodel.cpp b/src/plugins/Input/mpc/mpcmetadatamodel.cpp
index 9a07390e6..1f6456bd5 100644
--- a/src/plugins/Input/mpc/mpcmetadatamodel.cpp
+++ b/src/plugins/Input/mpc/mpcmetadatamodel.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009-2015 by Ilya Kotov *
+ * Copyright (C) 2009-2016 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -26,7 +26,7 @@
MPCMetaDataModel::MPCMetaDataModel(const QString &path, QObject *parent) : MetaDataModel(parent)
{
- m_file = new TagLib::MPC::File (path.toLocal8Bit().constData());
+ m_file = new TagLib::MPC::File (QStringToFileName(path));
m_tags << new MPCFileTagModel(m_file, TagLib::MPC::File::ID3v1);
m_tags << new MPCFileTagModel(m_file, TagLib::MPC::File::APE);
}