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