https://bugs.kde.org/show_bug.cgi?id=392793

--- Comment #7 from Ignacio Serantes <k...@aynoa.net> ---
Comment on attachment 136755
  --> https://bugs.kde.org/attachment.cgi?id=136755
A fix?

diff --git a/src/file/metadatamover.cpp b/src/file/metadatamover.cpp
index abb22dd1..ccd4e4e9 100644
--- a/src/file/metadatamover.cpp
+++ b/src/file/metadatamover.cpp
@@ -10,6 +10,7 @@
 #include "database.h"
 #include "transaction.h"
 #include "baloodebug.h"
+#include "termgenerator.h"

 #include <QFile>

@@ -102,6 +103,9 @@ void MetadataMover::updateMetadata(Transaction* tr, const
QString& from, const Q
     doc.setId(id);
     doc.setParentId(parentId);
     doc.setUrl(toPath);
+    const QByteArray fileName = toPath.mid(lastSlash + 1);
+    TermGenerator tg(doc);
+    tg.indexFileNameText(fileName);
     tr->replaceDocument(doc, DocumentUrl | FileNameTerms);

     // Possible scenarios

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to