forked from qt-creator/qt-creator
HistoryCompleter : only save non empty entries
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user