forked from QupZilla/qupzilla
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using mApp->tempPath() everywhere. (PROFILEDIR/temp)
- Loading branch information
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* ============================================================ | ||
* QupZilla - WebKit based browser | ||
* Copyright (C) 2010-2012 David Rosca <[email protected]> | ||
* Copyright (C) 2010-2013 David Rosca <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -69,7 +69,7 @@ void DownloadFileHelper::handleUnsupportedContent(QNetworkReply* reply, const Do | |
m_reply = reply; | ||
|
||
QFileInfo fileInfo(m_h_fileName); | ||
QTemporaryFile tempFile(QDir::tempPath()+"/XXXXXX." + fileInfo.suffix()); | ||
QTemporaryFile tempFile(mApp->tempPath() + "/XXXXXX." + fileInfo.suffix()); | ||
tempFile.open(); | ||
tempFile.write(m_reply->peek(1024 * 1024)); | ||
QFileInfo tempInfo(tempFile.fileName()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters