Skip to content
Snippets Groups Projects
Commit a12fb8dd authored by Arvid Ephraim Picciani's avatar Arvid Ephraim Picciani
Browse files

HistoryCompleter : only save non empty entries

parent bf257254
No related branches found
No related tags found
No related merge requests found
...@@ -158,6 +158,8 @@ void HistoryListModel::clearHistory() ...@@ -158,6 +158,8 @@ void HistoryListModel::clearHistory()
void HistoryListModel::saveEntry(const QString &str) void HistoryListModel::saveEntry(const QString &str)
{ {
if (str.isEmpty())
return;
if (list.contains(str)) if (list.contains(str))
return; return;
if (!q->widget()) if (!q->widget())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment