1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 02:52:12 +01:00

[Fix] Empty locationbar upon writing first char

Closes #667
This commit is contained in:
nowrep 2012-12-08 16:50:16 +01:00
parent 889e2743f5
commit d42b50cc15

View File

@ -63,6 +63,10 @@ void LocationCompleter::showMostVisited()
void LocationCompleter::currentChanged(const QModelIndex &index) void LocationCompleter::currentChanged(const QModelIndex &index)
{ {
if (!index.isValid()) {
return;
}
QString completion = index.data().toString(); QString completion = index.data().toString();
if (completion.isEmpty()) { if (completion.isEmpty()) {