Merge lp:~michael-sheldon/content-hub/set-download-appid-15.04 into lp:content-hub/15.04

Proposed by Michael Sheldon
Status: Needs review
Proposed branch: lp:~michael-sheldon/content-hub/set-download-appid-15.04
Merge into: lp:content-hub/15.04
Diff against target: 13 lines (+3/-0)
1 file modified
src/com/ubuntu/content/detail/transfer.cpp (+3/-0)
To merge this branch: bzr merge lp:~michael-sheldon/content-hub/set-download-appid-15.04
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Ubuntu Phablet Team Pending
Review via email: mp+278593@code.launchpad.net

Commit message

Set destination app-id as download metadata

Description of the change

Set destination app-id as download metadata

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Unmerged revisions

217. By Michael Sheldon

Set destination app-id as download metadata

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/com/ubuntu/content/detail/transfer.cpp'
2--- src/com/ubuntu/content/detail/transfer.cpp 2015-09-21 13:28:35 +0000
3+++ src/com/ubuntu/content/detail/transfer.cpp 2015-11-25 14:19:50 +0000
4@@ -235,6 +235,9 @@
5 download->setDestinationDir(d->store);
6 connect(download, SIGNAL(finished(QString)), this, SLOT(DownloadComplete(QString)));
7 connect(download, SIGNAL(error(Ubuntu::DownloadManager::Error*)), this, SLOT(DownloadError(Ubuntu::DownloadManager::Error*)));
8+ QVariantMap metadata = download->metadata();
9+ metadata["app-id"] = d->destination;
10+ download->setMetadata(metadata);
11 download->start();
12 d->state = cuc::Transfer::downloading;
13 Q_EMIT(StateChanged(d->state));

Subscribers

People subscribed via source and target branches