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:
parent
20010eb3c4
commit
0524bbc1a6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user