Summary: | [PATCH] ampersand displayed as & in ID3 comment tag | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Silver Juurik <silverjuurik> |
Component: | Metadata Editing and Reading | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | unnamedrambler |
Priority: | NOR | ||
Version: | 2.3-GIT | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | patch for comment escaping |
Description
Silver Juurik
2010-01-08 18:51:30 UTC
Created attachment 40100 [details]
patch for comment escaping
Qt::escape is applied to the comment text when opening the TagDialog. The proposed patch removes the Qt::escape. This fixes showing "&", ">" and "<" symbols.
Thank you for the patch, but please make a merge request on http://gitorious.org/amarok/amarok so the developers can have a look. Adapting title The following commit fixes this bug. Thanks again, Silver Juurik :) commit 9e28899745919766693f85f364c7354b00135b68 Author: Silver Juurik <silverjuurik@gmail.com> AuthorDate: Thu Jan 21 22:43:09 2010 +0200 Commit: Silver Juurik <silverjuurik@gmail.com> CommitDate: Thu Jan 21 22:43:09 2010 +0200 remove HTML escaping for the comment field in TagDialog diff --git a/src/dialogs/TagDialog.cpp b/src/dialogs/TagDialog.cpp index 4e04475..b01aa18 100644 --- a/src/dialogs/TagDialog.cpp +++ b/src/dialogs/TagDialog.cpp @@ -1013,7 +1013,7 @@ void TagDialog::readTags() ui->qSpinBox_year->setValue( 0 ); ui->qSpinBox_score->setValue( m_currentData.value( Meta::Field::SCORE ).toInt() ); ui->qSpinBox_discNumber->setValue( m_currentData.value( Meta::Field::DISCNUMBER ).toInt() ); - ui->qPlainTextEdit_comment->setPlainText( Qt::escape( m_currentData.value( Meta::Field::COMMENT ).toString() ) ); + ui->qPlainTextEdit_comment->setPlainText( m_currentData.value( Meta::Field::COMMENT ).toString() ); QString summaryText, statisticsText; const QString body2cols = "<tr><td><nobr>%1</nobr></td><td><b>%2</b></td></tr>"; |