diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-01-16 17:30:56 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-01-21 10:06:01 +0000 |
commit | 0deb1ffda77f0410b3d13419856c757cdd422d2b (patch) | |
tree | 9206e32b8b23f7b8df827ec051182dbfc96d80af /src/core/profile_adapter.cpp | |
parent | 3f7ea91e23d82e676aeaf157736e25cf54e5ec6b (diff) |
Remove download items internally when API objects are deleted
We were never removing internal download item.
[ChangeLog][Behavioral Changes] Deleting a download item will
now also cancel it if it is still in progress.
Change-Id: I2fab497d7acf7ca6ca17f4a61e106b1c18bfb333
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/core/profile_adapter.cpp')
-rw-r--r-- | src/core/profile_adapter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/profile_adapter.cpp b/src/core/profile_adapter.cpp index 800fcb401..462be9f48 100644 --- a/src/core/profile_adapter.cpp +++ b/src/core/profile_adapter.cpp @@ -188,6 +188,11 @@ void ProfileAdapter::resumeDownload(quint32 downloadId) downloadManagerDelegate()->resumeDownload(downloadId); } +void ProfileAdapter::removeDownload(quint32 downloadId) +{ + downloadManagerDelegate()->removeDownload(downloadId); +} + ProfileAdapter *ProfileAdapter::createDefaultProfileAdapter() { return WebEngineContext::current()->createDefaultProfileAdapter(); |