diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-12 02:14:40 +0200 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-12 02:14:40 +0200 | 
| commit | a82b4494b2e661cf14e3db22ae3f9cfe8497e6dd (patch) | |
| tree | 1e14c38a5999e9279080cd21dfde55b6613f6a40 /src | |
| parent | rekonq 0.2.65 (diff) | |
| download | rekonq-a82b4494b2e661cf14e3db22ae3f9cfe8497e6dd.tar.xz | |
user check on resend form data
Diffstat (limited to 'src')
| -rw-r--r-- | src/webpage.cpp | 10 | 
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); | 
