Commit ec109ac2 authored by Jonathan Marten's avatar Jonathan Marten
Browse files

Search bar: Set the placeholder text for "Find in This Page"

Otherwise it would remain as the previously selected search
engine name.
parent 1d7ed315
Pipeline #208374 passed with stage
in 4 minutes and 38 seconds
......@@ -262,8 +262,13 @@ void SearchBarPlugin::setIcon()
m_searchCombo->setIcon(m_searchIcon);
// Set the placeholder text to be the search engine name...
if (m_searchProviders.contains(m_currentEngine)) {
m_searchCombo->lineEdit()->setPlaceholderText(m_searchProviders.value(m_currentEngine).name());
if (m_searchMode == FindInThisPage) {
m_searchCombo->lineEdit()->setPlaceholderText(i18n("Find in Page..."));
} else {
if (m_searchProviders.contains(m_currentEngine)) {
m_searchCombo->lineEdit()->setPlaceholderText(m_searchProviders.value(m_currentEngine).name());
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment