Close temporary download file for QtWebEngine
Otherwise, Chromium won't be able to write on it on Windows - and we only need the name anyways.
This commit is contained in:
parent
edb197b028
commit
2c4e549d80
@ -104,6 +104,7 @@ class DownloadItem(downloads.AbstractDownloadItem):
|
||||
raise downloads.UnsupportedOperationError
|
||||
|
||||
def _set_tempfile(self, fileobj):
|
||||
fileobj.close()
|
||||
self._set_filename(fileobj.name, force_overwrite=True,
|
||||
remember_directory=False)
|
||||
|
||||
|
@ -419,7 +419,6 @@ Feature: Downloading things from a website.
|
||||
|
||||
## opening a file directly (prompt-open-download)
|
||||
|
||||
@issue2478
|
||||
Scenario: Opening a download directly
|
||||
When I set storage -> prompt-download-directory to true
|
||||
And I open data/downloads/download.bin without waiting
|
||||
|
Loading…
Reference in New Issue
Block a user