mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
parent
474d665e52
commit
d97ab52d8c
@ -117,6 +117,7 @@ void SearchToolBar::searchText(const QString &text)
|
||||
{
|
||||
WebView* view = p_QupZilla->weView();
|
||||
bool found = view->findText(text, m_findFlags);
|
||||
|
||||
if (text.isEmpty()) {
|
||||
found = true;
|
||||
}
|
||||
@ -125,9 +126,13 @@ void SearchToolBar::searchText(const QString &text)
|
||||
m_findFlags = QWebPage::HighlightAllOccurrences;
|
||||
updateFindFlags();
|
||||
view->findText(text, m_findFlags);
|
||||
|
||||
if (!found) {
|
||||
view->findText(QString(), QWebPage::HighlightAllOccurrences);
|
||||
}
|
||||
}
|
||||
else {
|
||||
view->findText("", QWebPage::HighlightAllOccurrences);
|
||||
view->findText(QString(), QWebPage::HighlightAllOccurrences);
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
|
Loading…
Reference in New Issue
Block a user