Don't jump to last search entry in help browser when navigating to some URL

This commit is contained in:
Matthias Koefferlein
2026-08-20 19:51:10 +02:00
parent 5ff3bb4c4b
commit 7b65a31e1f
2 changed files with 10 additions and 3 deletions
+8 -2
View File
@@ -346,7 +346,7 @@ BrowserPanel::find ()
}
void
BrowserPanel::page_search_edited ()
BrowserPanel::update_search_highlights ()
{
m_search_selection.clear ();
m_search_index = -1;
@@ -382,6 +382,12 @@ BrowserPanel::page_search_edited ()
}
}
}
void
BrowserPanel::page_search_edited ()
{
update_search_highlights ();
if (! m_search_selection.empty ()) {
m_search_index = 0;
@@ -440,7 +446,7 @@ BrowserPanel::new_url ()
emit title_changed (title);
// refresh on-page search
page_search_edited ();
update_search_highlights ();
}
void
+2 -1
View File
@@ -440,7 +440,7 @@ public slots:
protected slots:
void page_search_edited ();
void page_search_next();
void search_text_changed(const QString &text);
void search_text_changed (const QString &text);
void search_edited ();
void source_changed ();
void anchor_clicked (const QUrl &url);
@@ -482,6 +482,7 @@ private:
void refresh_bookmark_list ();
void store_bookmarks ();
void update_navigation_panel ();
void update_search_highlights ();
};
}