summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-02-02 01:14:46 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-02-02 01:14:46 +0100
commite095ed8b62c56745367fe79186431fe4f175d777 (patch)
treed0970337b1bbda311502e549d8ba64905fc1bc1e /src/webview.cpp
parentFixed notfound.html (diff)
downloadrekonq-e095ed8b62c56745367fe79186431fe4f175d777.tar.xz
Fixed download problems
rewamp proxy ui fixing settings
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index a4ca8211..95fcdf83 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -126,6 +126,11 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
{
KUrl srcUrl = reply->url();
QString path = ReKonfig::downloadDir() + QString("/") + srcUrl.fileName();
+ QFile file(path);
+ if (file.exists())
+ {
+ path = KFileDialog::getOpenFileName();
+ }
KUrl destUrl = KUrl(path);
BrowserApplication::instance()->downloadUrl( srcUrl, destUrl );
return;
@@ -312,6 +317,11 @@ void WebView::downloadRequested(const QNetworkRequest &request)
{
KUrl srcUrl = request.url();
QString path = ReKonfig::downloadDir() + QString("/") + srcUrl.fileName();
+ QFile file(path);
+ if (file.exists())
+ {
+ path = KFileDialog::getOpenFileName();
+ }
KUrl destUrl = KUrl(path);
BrowserApplication::instance()->downloadUrl( srcUrl, destUrl );
}