summaryrefslogtreecommitdiffstats
path: root/src/core/download_manager_delegate_qt.cpp
diff options
context:
space:
mode:
authorZoltan Arvai <zarvai@inf.u-szeged.hu>2014-01-10 15:58:05 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-10 17:14:15 +0100
commit9f3dd65c4d3b70d039f738323ca0112498fc2166 (patch)
tree18fe25bf724f4f902c51dbb626a64f0ba46304b5 /src/core/download_manager_delegate_qt.cpp
parent73f0716ddf56443db3d45a9eb60cee6177df2fc4 (diff)
Fix DownloadTargetHelper::determineDownloadTarget on Windows
filePathForCallback.AddExtension won't accept const char[] with MSVC. It needs to be converted with the appropriate function. Change-Id: I95506de702eab4d7b61ddf051c7a122c793da35b Reviewed-by: Michael Bruning <michael.bruning@digia.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/core/download_manager_delegate_qt.cpp')
-rw-r--r--src/core/download_manager_delegate_qt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/download_manager_delegate_qt.cpp b/src/core/download_manager_delegate_qt.cpp
index 27b61b1c9..e00e4a247 100644
--- a/src/core/download_manager_delegate_qt.cpp
+++ b/src/core/download_manager_delegate_qt.cpp
@@ -119,7 +119,7 @@ bool DownloadTargetHelper::determineDownloadTarget(content::DownloadItem *item,
base::FilePath filePathForCallback(toFilePathString(suggestedFilePath));
callback.Run(filePathForCallback, content::DownloadItem::TARGET_DISPOSITION_OVERWRITE,
- content::DOWNLOAD_DANGER_TYPE_MAYBE_DANGEROUS_CONTENT, filePathForCallback.AddExtension("download"));
+ content::DOWNLOAD_DANGER_TYPE_MAYBE_DANGEROUS_CONTENT, filePathForCallback.AddExtension(toFilePathString("download")));
return true;
}