Commit 24f5bc7d authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Utils: Add a soft assertion in HistoryCompleter

Change-Id: I8319366bb84f00dc338dcea81233b69b6a116d66
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 02c4f0dd
......@@ -152,6 +152,7 @@ void HistoryCompleterPrivate::clearHistory()
void HistoryCompleterPrivate::addEntry(const QString &str)
{
QTC_ASSERT(theSettings, return);
const QString entry = str.trimmed();
if (entry.isEmpty()) {
isLastItemEmpty = true;
......
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