ui: Fixed search related issues

* select elements when clicking into search bar
* fixed crash and single file mode clearing when fulltext search yields no results
This commit is contained in:
Eberhard Graether
2017-07-20 15:55:31 +02:00
parent 3c72ce7459
commit faae66b304
8 changed files with 65 additions and 14 deletions
@@ -402,6 +402,11 @@ void CodeController::expandVisibleSnippets(std::vector<CodeSnippetParams>* snipp
{
TRACE();
if (!snippets->size())
{
return;
}
bool inListMode = getView()->isInListMode();
size_t filesToExpand = inListMode ? std::min(int(snippets->size()), 3) : 1;