diff --git a/src/lib/navigation/completer/locationcompleterdelegate.cpp b/src/lib/navigation/completer/locationcompleterdelegate.cpp index d61f97730..c9252a156 100644 --- a/src/lib/navigation/completer/locationcompleterdelegate.cpp +++ b/src/lib/navigation/completer/locationcompleterdelegate.cpp @@ -1,6 +1,6 @@ /* ============================================================ * Falkon - Qt web browser -* Copyright (C) 2010-2017 David Rosca +* Copyright (C) 2010-2018 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -117,6 +117,9 @@ void LocationCompleterDelegate::paint(QPainter* painter, const QStyleOptionViewI } QString searchText = index.data(LocationCompleterModel::SearchStringRole).toString(); + if (index.data(LocationCompleterModel::VisitSearchItemRole).toBool()) { + searchText.clear(); + } // Draw title leftPosition += 2;