summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-12 02:14:40 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-12 02:14:40 +0200
commita82b4494b2e661cf14e3db22ae3f9cfe8497e6dd (patch)
tree1e14c38a5999e9279080cd21dfde55b6613f6a40
parentrekonq 0.2.65 (diff)
downloadrekonq-a82b4494b2e661cf14e3db22ae3f9cfe8497e6dd.tar.xz
user check on resend form data
-rw-r--r--src/webpage.cpp10
1 files changed, 10 insertions, 0 deletions
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);