diff --git a/src/lib/navigation/completer/locationcompleterview.cpp b/src/lib/navigation/completer/locationcompleterview.cpp index 549cf67c8..5a242b6ec 100644 --- a/src/lib/navigation/completer/locationcompleterview.cpp +++ b/src/lib/navigation/completer/locationcompleterview.cpp @@ -163,7 +163,7 @@ bool LocationCompleterView::eventFilter(QObject* object, QEvent* event) return true; case Qt::Key_Delete: - if (viewport()->rect().contains(visualRect(idx))) { + if (idx != visitSearchIdx && viewport()->rect().contains(visualRect(idx))) { emit indexDeleteRequested(idx); return true; }