Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #16 from zchydem/master
Browse files Browse the repository at this point in the history
[nemo-transfer-engine] Now title or description is actually stored to the database.
  • Loading branch information
Marko Mattila committed Feb 6, 2014
2 parents 3101c06 + 515ed84 commit 0360ea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dbmanager.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 0360ea9

Please sign in to comment.