1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

LocationCompleter: Don't allow to delete search/visit completion item

This commit is contained in:
David Rosca 2017-08-12 15:10:39 +02:00
parent 20010eb3c4
commit 0524bbc1a6

View File

@ -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;
}