Commit af98f966 authored by Robert Knight's avatar Robert Knight
Browse files

Restore focus to the terminal display when the search bar is closed.

svn path=/branches/work/konsole-split-view/; revision=637906
parent 163335bb
......@@ -261,13 +261,17 @@ void SessionController::clearAndReset()
void SessionController::searchClosed()
{
_historyToggleAction->setChecked(false);
_view->setFocus( Qt::ActiveWindowFocusReason );
}
void SessionController::searchHistory(bool showSearchBar)
{
if ( _searchBar )
{
_searchBar->setVisible(showSearchBar);
if (!showSearchBar)
{
_view->setFocus( Qt::ActiveWindowFocusReason );
}
}
}
void SessionController::findNextInHistory()
......
Markdown is supported
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