summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Pinon <vpinon@kde.org>2016-12-06 07:29:46 (GMT)
committerVincent Pinon <vpinon@kde.org>2016-12-06 07:31:16 (GMT)
commit388717238b03ca663187ec0e05209dcd0dfe5dfb (patch)
tree5c578f5265cd9f34a903a2aa4714f281316840b4
parentae665d1607b54696bd174ab083360642af733108 (diff)
fix clip loading on windows
-rw-r--r--src/dialogs/clipcreationdialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dialogs/clipcreationdialog.cpp b/src/dialogs/clipcreationdialog.cpp
index 61c239b..9700ef7 100644
--- a/src/dialogs/clipcreationdialog.cpp
+++ b/src/dialogs/clipcreationdialog.cpp
@@ -423,7 +423,7 @@ void ClipCreationDialog::createClipsCommand(KdenliveDoc *doc, const QList<QUrl>
QDomElement prod = xml.createElement(QStringLiteral("producer"));
xml.appendChild(prod);
QMap <QString, QString> properties;
- properties.insert(QStringLiteral("resource"), file.path());
+ properties.insert(QStringLiteral("resource"), file.toLocalFile());
if (!groupInfo.isEmpty()) {
properties.insert(QStringLiteral("kdenlive:folderid"), groupInfo.at(0));
}
@@ -433,7 +433,6 @@ void ClipCreationDialog::createClipsCommand(KdenliveDoc *doc, const QList<QUrl>
i.next();
properties.insert(i.key(), i.value());
}
- //prod.setAttribute("resource", file.path());
uint id = bin->getFreeClipId();
prod.setAttribute(QStringLiteral("id"), QString::number(id));
QMimeDatabase db;