HistoryCompleter : only save non empty entries

This commit is contained in:
Arvid Ephraim Picciani
2010-09-17 13:45:41 +02:00
parent bf25725467
commit a12fb8dd8c

View File

@@ -158,6 +158,8 @@ void HistoryListModel::clearHistory()
void HistoryListModel::saveEntry(const QString &str)
{
if (str.isEmpty())
return;
if (list.contains(str))
return;
if (!q->widget())