diff --git a/src/libs/utils/historycompleter.cpp b/src/libs/utils/historycompleter.cpp index 8fcfa1436ba..8b1357a872c 100644 --- a/src/libs/utils/historycompleter.cpp +++ b/src/libs/utils/historycompleter.cpp @@ -180,7 +180,9 @@ HistoryCompleter::~HistoryCompleter() bool HistoryCompleter::eventFilter(QObject *obj, QEvent *event) { - if (event->type() == QEvent::KeyPress && static_cast(event)->key() == Qt::Key_Down) { + if (event->type() == QEvent::KeyPress && + static_cast(event)->key() == Qt::Key_Down && + static_cast(widget())->text().isEmpty()) { setCompletionPrefix(QString()); complete(); }