Commit 009797c0 authored by Eike Ziller's avatar Eike Ziller Committed by hjk

Make search history larger.

Change-Id: Ib7d61aaa14e33860da8b6234d9e8ae779be29cd1
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent eb1e89a4
......@@ -53,6 +53,7 @@
static const char SETTINGSKEYSECTIONNAME[] = "SearchResults";
static const char SETTINGSKEYEXPANDRESULTS[] = "ExpandResults";
static const int MAX_SEARCH_HISTORY = 12;
namespace Find {
......@@ -329,7 +330,7 @@ SearchResult *SearchResultWindow::startNewSearch(const QString &label,
SearchMode searchOrSearchAndReplace,
const QString &cfgGroup)
{
if (d->m_searchResults.size() >= 5) {
if (d->m_searchResults.size() >= MAX_SEARCH_HISTORY) {
d->m_searchResultWidgets.last()->notifyVisibilityChanged(false);
delete d->m_searchResults.takeLast();
delete d->m_searchResultWidgets.takeLast();
......
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