aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-07-27 19:53:10 +0200
committerJean-Baptiste Mardelle <[email protected]>2015-07-27 19:53:10 +0200
commitf657487501d1a79d72638abcc5e7e0150021bc67 (patch)
tree7268ceaf95176131c935790cf645d7573d8d212d
parentb25472aec243fc6d622d1d3d8cc23bfc485ea7f7 (diff)
Fix downloaded render profiles broken
-rw-r--r--src/dialogs/renderwidget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dialogs/renderwidget.cpp b/src/dialogs/renderwidget.cpp
index 0e9d76c..6fb672a 100644
--- a/src/dialogs/renderwidget.cpp
+++ b/src/dialogs/renderwidget.cpp
@@ -1779,7 +1779,9 @@ void RenderWidget::parseFile(const QString &exportFile, bool editable)
QDomElement profile = node.toElement();
QString profileName = profile.attribute("name");
QString standard = profile.attribute("standard");
- QString params = profile.attribute("args");
+ QTextDocument docConvert;
+ docConvert.setHtml(profile.attribute("args"));
+ QString params = docConvert.toPlainText().simplified();
if (replaceVorbisCodec && params.contains("acodec=vorbis")) {
// replace vorbis with libvorbis
@@ -1909,7 +1911,7 @@ void RenderWidget::parseFile(const QString &exportFile, bool editable)
profileElement = n.toElement();
profileName = profileElement.attribute("name");
standard = profileElement.attribute("standard");
- params = profileElement.attribute("args");
+ params = profileElement.attribute("args").simplified();
if (replaceVorbisCodec && params.contains("acodec=vorbis")) {
// replace vorbis with libvorbis