From 5224e824ae8ffdd799931ec39291dde10dff5979 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 22 Oct 2018 12:42:41 +0200 Subject: [PATCH] Utils: Decrease default maximum history size History completer has been used now in various areas and storing 30 items for each of them inside the can grow the settings quite a lot. Limit the default to a sensible value - if one of the history completer needs a higher maximum this can be raised from the using code. Change-Id: I5b0bdaa74c1be29f981593f840d5605b75bd17c5 Reviewed-by: hjk Reviewed-by: Eike Ziller --- src/libs/utils/historycompleter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/historycompleter.cpp b/src/libs/utils/historycompleter.cpp index 4a04ac5b953..8657374f776 100644 --- a/src/libs/utils/historycompleter.cpp +++ b/src/libs/utils/historycompleter.cpp @@ -56,7 +56,7 @@ public: QStringList list; QString historyKey; QString historyKeyIsLastItemEmpty; - int maxLines = 30; + int maxLines = 6; bool isLastItemEmpty = false; };