diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-08-01 12:01:16 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:04 +0100 |
commit | b07462a84c686136ab893ab55b6c4669a9fe74bc (patch) | |
tree | 21bcad87e4202a3350947549023bb45dcfda656d /src/webtab/webpage.cpp | |
parent | Clean out WebTab methods not really related. (diff) | |
download | rekonq-b07462a84c686136ab893ab55b6c4669a9fe74bc.tar.xz |
Fix use of webpage
Diffstat (limited to 'src/webtab/webpage.cpp')
-rw-r--r-- | src/webtab/webpage.cpp | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/src/webtab/webpage.cpp b/src/webtab/webpage.cpp index 8697a9b5..d87c2119 100644 --- a/src/webtab/webpage.cpp +++ b/src/webtab/webpage.cpp @@ -62,6 +62,7 @@ #include <KProtocolInfo> #include <KRun> +#include <KIO/Job> #include <KIO/JobUiDelegate> #include <kparts/browseropenorsavequestion.h> @@ -402,9 +403,9 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) tempFile.open(); KUrl destUrl; destUrl.setPath(tempFile.fileName()); -// KIO::Job *job = KIO::file_copy(_loadingUrl, destUrl, 0600, KIO::Overwrite); -// job->ui()->setWindow(view()); -// connect(job, SIGNAL(result(KJob*)), this, SLOT(copyToTempFileResult(KJob*))); + KIO::Job *job = KIO::file_copy(_loadingUrl, destUrl, 0600, KIO::Overwrite); + job->ui()->setWindow(view()); + connect(job, SIGNAL(result(KJob*)), this, SLOT(copyToTempFileResult(KJob*))); return; } @@ -417,11 +418,8 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) WebView *view = qobject_cast<WebView *>(parent()); WebTab *tab = qobject_cast<WebTab *>(view->parent()); tab->setPart(pa, replyUrl); - -// UrlBar *bar = tab->urlBar(); -// bar->setQUrl(replyUrl); -// -// rApp->mainWindow()->updateHistoryActions(); + + // FIXME: Is this enough? } else { @@ -532,13 +530,7 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply) if (isMainFrameRequest) { _isOnRekonqPage = true; - - WebView *view = qobject_cast<WebView *>(parent()); - WebTab *tab = qobject_cast<WebTab *>(view->parent()); -// FIXME UrlBar *bar = tab->urlBar(); -// bar->setQUrl(_loadingUrl); -// -// rApp->mainWindow()->updateHistoryActions(); + // FIXME: is this enough? } } break; |