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

LocationBar: Only complete domain when not empty

This actually fixes issue where pasting text in the middle
of text would remove everything after pasted text.
This commit is contained in:
David Rosca 2018-03-03 15:29:03 +01:00
parent 2f6cd7a559
commit b03e79f9a5
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -187,7 +187,7 @@ void LocationBar::showDomainCompletion(const QString &completion)
// We need to manually force the completion because model is updated asynchronously // We need to manually force the completion because model is updated asynchronously
// But only force completion when the user actually added new text // But only force completion when the user actually added new text
if (m_oldTextLength < m_currentTextLength) if (!completion.isEmpty() && m_oldTextLength < m_currentTextLength)
completer()->complete(); completer()->complete();
} }