diff options
author | Kirill Burtsev <kirill.burtsev@qt.io> | 2019-11-28 19:10:23 +0100 |
---|---|---|
committer | Kirill Burtsev <kirill.burtsev@qt.io> | 2019-11-29 10:51:14 +0100 |
commit | c24cc3014d750a406523629eff94f4f5f87e92cb (patch) | |
tree | cfa54177e8ae32a052950b23e50b71e7d5efae3c /src/core/profile_adapter_client.h | |
parent | 468c2d9a6d7b95b7dacc5372726860e7ccf14fb4 (diff) |
Fix 'setDownloadDirectory' for download item on 'SavePage' action
Chromium's DownloadManager doesn't create its download items before
path for saving page is confirmed. So assert inside updateDownloadPath
was not correct. Moreover, the name is confusing because it's not really
updating anything. Remove it and use ProfileAdapterClient::DownloadInfo
timestamp to determine updated filename after directory change.
Ammends recent new api for changing download directory 0884fab3b1.
Fixes: QTBUG-80372
Change-Id: If9efb52979deb3cf21fc4e12989173c85e04e090
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/core/profile_adapter_client.h')
-rw-r--r-- | src/core/profile_adapter_client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/profile_adapter_client.h b/src/core/profile_adapter_client.h index dc0f508a1..394f92270 100644 --- a/src/core/profile_adapter_client.h +++ b/src/core/profile_adapter_client.h @@ -140,7 +140,7 @@ public: int downloadInterruptReason; WebContentsAdapterClient *page; QString suggestedFileName; - time_t startTime; + qint64 startTime; }; virtual ~ProfileAdapterClient() { } |