From a82b4494b2e661cf14e3db22ae3f9cfe8497e6dd Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 12 Oct 2009 02:14:40 +0200 Subject: user check on resend form data --- src/webpage.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/webpage.cpp') diff --git a/src/webpage.cpp b/src/webpage.cpp index 59c777d6..2b622847 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -93,6 +93,16 @@ WebPage::~WebPage() bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type) { + // advise users on resubmitting data + if(type == QWebPage::NavigationTypeFormResubmitted) + { + int risp = KMessageBox::warningContinueCancel(view(), + i18n("Are you sure you want to send your data again?"), + i18n("Resend form data") ); + if(risp == KMessageBox::Cancel) + return false; + } + if (m_keyboardModifiers & Qt::ControlModifier || m_pressedButtons == Qt::MidButton) { Application::instance()->loadUrl(request.url(), Rekonq::SettingOpenTab); -- cgit v1.2.1