aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/detailsdialog.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-10-20 08:44:18 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-10-20 08:44:18 +0000
commitbdc68c3d6aca4ca8c57d10eda5ff1ee0ec396bbb (patch)
tree2ef467528b18529cd9761606d992da0a80a80d60 /src/qmmpui/detailsdialog.cpp
parent4e2034621e7c09c39ba4d5f0240540ac97414e94 (diff)
downloadqmmp-bdc68c3d6aca4ca8c57d10eda5ff1ee0ec396bbb.tar.gz
qmmp-bdc68c3d6aca4ca8c57d10eda5ff1ee0ec396bbb.tar.bz2
qmmp-bdc68c3d6aca4ca8c57d10eda5ff1ee0ec396bbb.zip
cue plugin: added audio information
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1331 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/detailsdialog.cpp')
-rw-r--r--src/qmmpui/detailsdialog.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/qmmpui/detailsdialog.cpp b/src/qmmpui/detailsdialog.cpp
index d7fdb97e2..3ab9f35ca 100644
--- a/src/qmmpui/detailsdialog.cpp
+++ b/src/qmmpui/detailsdialog.cpp
@@ -43,17 +43,13 @@ DetailsDialog::DetailsDialog(AbstractPlaylistItem *item, QWidget *parent)
setWindowTitle (m_path.section('/',-1));
ui.pathEdit->setText(m_path);
- if(QFile::exists(item->url()))
- {
- m_metaDataModel = MetaDataManager::instance()->createMetaDataModel(item->url(), this);
-
- if(!m_metaDataModel)
- return;
+ m_metaDataModel = MetaDataManager::instance()->createMetaDataModel(item->url(), this);
+ if(m_metaDataModel)
+ {
foreach(TagModel *tagModel, m_metaDataModel->tags())
- {
ui.tabWidget->addTab(new TagEditor(tagModel, this), tagModel->name());
- }
+
foreach(QString title, m_metaDataModel->descriptions().keys())
{
QTextEdit *textEdit = new QTextEdit(this);