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)
|
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())
|
||||||
|
|||||||
Reference in New Issue
Block a user