mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
WebPage: Remove disabled form resubmitted warning
Looks like it won't come back in QtWebEngine and it wasn't really that much useful feature.
This commit is contained in:
parent
7a512918f8
commit
e60daf072b
@ -330,22 +330,6 @@ bool WebPage::acceptNavigationRequest(const QUrl &url, QWebEnginePage::Navigatio
|
||||
return false;
|
||||
|
||||
return QWebEnginePage::acceptNavigationRequest(url, type, isMainFrame);
|
||||
|
||||
#if QTWEBENGINE_DISABLED
|
||||
if (type == QWebEnginePage::NavigationTypeFormResubmitted) {
|
||||
// Don't show this dialog if app is still starting
|
||||
if (!view() || !view()->isVisible()) {
|
||||
return false;
|
||||
}
|
||||
QString message = tr("To display this page, QupZilla must resend the request \n"
|
||||
"(such as a search or order confirmation) that was performed earlier.");
|
||||
bool result = (QMessageBox::question(view(), tr("Confirm form resubmission"),
|
||||
message, QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::Yes);
|
||||
if (!result) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool WebPage::certificateError(const QWebEngineCertificateError &error)
|
||||
|
Loading…
Reference in New Issue
Block a user