mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
AutoFill: Fix completing forms after recent change
Fix regression from 3360a531f1
This commit is contained in:
parent
61bc7f4543
commit
2730fd4b4a
@ -93,7 +93,9 @@ WebPage::WebPage(QObject* parent)
|
|||||||
connect(this, SIGNAL(printRequested(QWebFrame*)), this, SLOT(printFrame(QWebFrame*)));
|
connect(this, SIGNAL(printRequested(QWebFrame*)), this, SLOT(printFrame(QWebFrame*)));
|
||||||
connect(this, SIGNAL(downloadRequested(QNetworkRequest)), this, SLOT(downloadRequested(QNetworkRequest)));
|
connect(this, SIGNAL(downloadRequested(QNetworkRequest)), this, SLOT(downloadRequested(QNetworkRequest)));
|
||||||
connect(this, SIGNAL(windowCloseRequested()), this, SLOT(windowCloseRequested()));
|
connect(this, SIGNAL(windowCloseRequested()), this, SLOT(windowCloseRequested()));
|
||||||
connect(this, SIGNAL(restoreFrameStateRequested(QWebFrame*)), this, SLOT(restoreFrameRequested(QWebFrame*)));
|
|
||||||
|
frameCreated(mainFrame());
|
||||||
|
connect(this, SIGNAL(frameCreated(QWebFrame*)), this, SLOT(frameCreated(QWebFrame*)));
|
||||||
|
|
||||||
connect(this, SIGNAL(databaseQuotaExceeded(QWebFrame*,QString)),
|
connect(this, SIGNAL(databaseQuotaExceeded(QWebFrame*,QString)),
|
||||||
this, SLOT(dbQuotaExceeded(QWebFrame*)));
|
this, SLOT(dbQuotaExceeded(QWebFrame*)));
|
||||||
@ -449,8 +451,19 @@ void WebPage::windowCloseRequested()
|
|||||||
webView->closeView();
|
webView->closeView();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebPage::restoreFrameRequested(QWebFrame* frame)
|
void WebPage::frameCreated(QWebFrame *frame)
|
||||||
{
|
{
|
||||||
|
connect(frame, SIGNAL(initialLayoutCompleted()), this, SLOT(frameInitialLayoutCompleted()));
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebPage::frameInitialLayoutCompleted()
|
||||||
|
{
|
||||||
|
QWebFrame* frame = qobject_cast<QWebFrame*>(sender());
|
||||||
|
if (!frame)
|
||||||
|
return;
|
||||||
|
|
||||||
|
qDebug() << frame;
|
||||||
|
|
||||||
// Autofill
|
// Autofill
|
||||||
m_passwordEntries = mApp->autoFill()->completeFrame(frame);
|
m_passwordEntries = mApp->autoFill()->completeFrame(frame);
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,9 @@ private slots:
|
|||||||
void downloadRequested(const QNetworkRequest &request);
|
void downloadRequested(const QNetworkRequest &request);
|
||||||
void windowCloseRequested();
|
void windowCloseRequested();
|
||||||
|
|
||||||
void restoreFrameRequested(QWebFrame* frame);
|
void frameCreated(QWebFrame* frame);
|
||||||
|
void frameInitialLayoutCompleted();
|
||||||
|
|
||||||
void dbQuotaExceeded(QWebFrame* frame);
|
void dbQuotaExceeded(QWebFrame* frame);
|
||||||
void doWebSearch(const QString &text);
|
void doWebSearch(const QString &text);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user