mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Fixed bug about incorrect icon returned by QFileIconProvider() for the file that is going to download.
-and added the missing include
This commit is contained in:
parent
dd58127293
commit
23a16726a8
@ -20,6 +20,9 @@
|
||||
#include <QWebPage>
|
||||
#include <QWebFrame>
|
||||
#include <QWebElement>
|
||||
#if QT_VERSION >= 0x050000
|
||||
#include <QUrlQuery>
|
||||
#endif
|
||||
#include <QDebug>
|
||||
|
||||
PageFormCompleter::PageFormCompleter(QWebPage* page)
|
||||
|
@ -69,7 +69,7 @@ void DownloadFileHelper::handleUnsupportedContent(QNetworkReply* reply, const Do
|
||||
m_reply = reply;
|
||||
|
||||
QFileInfo fileInfo(m_h_fileName);
|
||||
QTemporaryFile tempFile("XXXXXX." + fileInfo.suffix());
|
||||
QTemporaryFile tempFile(QDir::tempPath()+"/XXXXXX." + fileInfo.suffix());
|
||||
tempFile.open();
|
||||
tempFile.write(m_reply->peek(1024 * 1024));
|
||||
QFileInfo tempInfo(tempFile.fileName());
|
||||
|
Loading…
Reference in New Issue
Block a user