Commit 0360ea98 authored by Marko Mattila's avatar Marko Mattila

Merge pull request #16 from zchydem/master

[nemo-transfer-engine] Now title or description is actually stored to the database.
parents 3101c060 515ed846
......@@ -451,7 +451,7 @@ int DbManager::createTransferEntry(MediaItem *mediaItem)
// Create a metadata entry if user has passed any
const QString title = mediaItem->value(MediaItem::Title).toString();
const QString desc = mediaItem->value(MediaItem::Description).toString();
if (!title.isEmpty() && !desc.isEmpty()) {
if (!title.isEmpty() || !desc.isEmpty()) {
if (createMetadataEntry(rowId.toInt(), title, desc) < 0){
qWarning() << "DbManager::createTransferEntry: Failed to create metadata entry";
return -1;
......@@ -766,7 +766,7 @@ MediaItem * DbManager::mediaItem(int key) const
// this point if there isn't anything...
if (query.next()) {
item->setValue(MediaItem::Title, query.value(rec.indexOf("title")));
item->setValue(MediaItem::Title, query.value(rec.indexOf("description")));
item->setValue(MediaItem::Description, query.value(rec.indexOf("description")));
}
query.finish();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment