1
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:
S. Razi Alavizadeh 2013-01-29 05:22:08 +03:30
parent dd58127293
commit 23a16726a8
2 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,9 @@
#include <QWebPage>
#include <QWebFrame>
#include <QWebElement>
#if QT_VERSION >= 0x050000
#include <QUrlQuery>
#endif
#include <QDebug>
PageFormCompleter::PageFormCompleter(QWebPage* page)

View File

@ -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());