From 0ccfc03c8b0214575459325ac0555c26e458af45 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 3 Aug 2009 11:34:13 +0200 Subject: Simpler WebPage::acceptNavigationRequest --- src/webpage.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/webpage.cpp') diff --git a/src/webpage.cpp b/src/webpage.cpp index 337f4a39..6bcc399e 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -96,20 +96,6 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r return false; } - if (frame == mainFrame()) - { - return QWebPage::acceptNavigationRequest(frame, request, type); - } - else - { - // if frame doesn't exists (perhaps) we are pointing to a blank target.. - if (!frame) - { - Application::instance()->loadUrl(request.url(), Rekonq::SettingOpenTab); - return false; - } - } - return QWebPage::acceptNavigationRequest(frame, request, type); } -- cgit v1.2.1