mirror of
https://github.com/KDE/konsole.git
synced 2026-02-04 20:31:36 -05:00
Fixed search bar false positive after clear scrollback (and reset)
To prevent the search bar from continuing to show a match by emitting green even after clearing scrollback and resetting, search is rerun whenever the searchbar is opened. BUG: 407317
This commit is contained in:
committed by
Kurt Hindenburg
parent
b60218e211
commit
09237ee02f
@@ -1554,6 +1554,7 @@ void SessionController::searchBarEvent()
|
||||
_searchBar->focusLineEdit();
|
||||
} else {
|
||||
searchHistory(true);
|
||||
searchTextChanged(_searchBar->searchText());
|
||||
_isSearchBarEnabled = true;
|
||||
}
|
||||
}
|
||||
@@ -1644,11 +1645,12 @@ void SessionController::setFindNextPrevEnabled(bool enabled)
|
||||
_findNextAction->setEnabled(enabled);
|
||||
_findPreviousAction->setEnabled(enabled);
|
||||
}
|
||||
|
||||
void SessionController::searchTextChanged(const QString &text)
|
||||
{
|
||||
Q_ASSERT(view()->screenWindow());
|
||||
|
||||
if (_searchText == text) {
|
||||
if (_searchText == text && _isSearchBarEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user