Commit 59960af6 authored by Robert Knight's avatar Robert Knight
Browse files

Fix crash in search filter which can occur if the search bar is removed whilst...

Fix crash in search filter which can occur if the search bar is removed whilst the search is in progress.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=689757
parent 446abbe6
......@@ -716,7 +716,8 @@ void SessionController::beginSearch(const QString& text , int direction)
QRegExp::PatternSyntax syntax = _searchBar->matchRegExp() ? QRegExp::RegExp : QRegExp::FixedString;
QRegExp regExp( text.trimmed() , caseHandling , syntax );
_searchFilter->setRegExp(regExp);
if ( !regExp.isEmpty() )
{
SearchHistoryTask* task = new SearchHistoryTask(this);
......@@ -730,7 +731,6 @@ void SessionController::beginSearch(const QString& text , int direction)
task->execute();
}
_searchFilter->setRegExp(regExp);
_view->processFilters();
// TODO - Optimise by only updating affected regions
......
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