summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-28 05:48:51 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-28 05:48:51 (GMT)
commita05567066275632f40bcf302d67ccb770e4bb226 (patch)
treed7228d23b352f064e4607cdee42970f2c48d2751
parent84f218ede71cfdf4b4c6668289496efe0e483c38 (diff)
Fix error, we don't need to create new local variable.
-rw-r--r--src/bin/bin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/bin.cpp b/src/bin/bin.cpp
index ba4256d..3da6f32 100644
--- a/src/bin/bin.cpp
+++ b/src/bin/bin.cpp
@@ -917,7 +917,7 @@ void Bin::slotDuplicateClip()
if (currentName.isEmpty()) {
QUrl url = QUrl::fromLocalFile(EffectsList::property(xml, "resource"));
if (url.isValid()) {
- QString currentName = url.fileName();
+ currentName = url.fileName();
}
}
if (!currentName.isEmpty()) {