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

Proposed by Michael Sheldon
Status: Merged
Approved by: Ken VanDine
Approved revision: 252
Merged at revision: 261
Proposed branch: lp:~michael-sheldon/content-hub/set-download-appid
Merge into: lp:content-hub
Diff against target: 25 lines (+4/-0)
2 files modified
debian/control (+1/-0)
src/com/ubuntu/content/detail/transfer.cpp (+3/-0)
To merge this branch: bzr merge lp:~michael-sheldon/content-hub/set-download-appid
Reviewer Review Type Date Requested Status
Ken VanDine Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+272104@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)
251. By Michael Sheldon

Merge from trunk

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
252. By Michael Sheldon

Add build dependency on qtdeclarative5-ubuntu-ui-toolkit-plugin

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2015-09-23 14:45:09 +0000
3+++ debian/control 2015-12-08 15:33:38 +0000
4@@ -24,6 +24,7 @@
5 qtdeclarative5-dev-tools,
6 qtdeclarative5-qtquick2-plugin,
7 qtdeclarative5-test-plugin,
8+ qtdeclarative5-ubuntu-ui-toolkit-plugin,
9 Standards-Version: 3.9.4
10 Section: libs
11 Homepage: https://launchpad.net/content-hub
12
13=== modified file 'src/com/ubuntu/content/detail/transfer.cpp'
14--- src/com/ubuntu/content/detail/transfer.cpp 2015-10-28 17:14:10 +0000
15+++ src/com/ubuntu/content/detail/transfer.cpp 2015-12-08 15:33:38 +0000
16@@ -237,6 +237,9 @@
17 download->setDestinationDir(d->store);
18 connect(download, SIGNAL(finished(QString)), this, SLOT(DownloadComplete(QString)));
19 connect(download, SIGNAL(error(Ubuntu::DownloadManager::Error*)), this, SLOT(DownloadError(Ubuntu::DownloadManager::Error*)));
20+ QVariantMap metadata = download->metadata();
21+ metadata["app-id"] = d->destination;
22+ download->setMetadata(metadata);
23 download->start();
24 d->state = cuc::Transfer::downloading;
25 Q_EMIT(StateChanged(d->state));

Subscribers

People subscribed via source and target branches