summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webpage.cpp7
-rw-r--r--src/webpage.h3
2 files changed, 1 insertions, 9 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 45cf82d7..b289c97f 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -260,6 +260,7 @@ QObject *WebPage::createPlugin(const QString &classId, const QUrl &url, const QS
}
+// FIXME: sometimes url.fileName() fails to retrieve url file name
void WebPage::slotDownloadRequested(const QNetworkRequest &request)
{
const KUrl url(request.url());
@@ -273,9 +274,3 @@ void WebPage::slotDownloadRequested(const QNetworkRequest &request)
job->addMetaData("cache", "cache"); // Use entry from cache if available.
job->uiDelegate()->setAutoErrorHandlingEnabled(true);
}
-
-
-QString WebPage::chooseFile(QWebFrame *frame, const QString &suggestedFile)
-{
- return KFileDialog::getOpenFileName(suggestedFile, QString(), frame->page()->view());
-}
diff --git a/src/webpage.h b/src/webpage.h
index a000a663..d1642966 100644
--- a/src/webpage.h
+++ b/src/webpage.h
@@ -62,9 +62,6 @@ protected:
const QNetworkRequest &request,
NavigationType type);
- QString chooseFile(QWebFrame *frame,
- const QString &suggestedFile);
-
void javaScriptAlert(QWebFrame *frame,
const QString &msg);