mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +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:
parent
2f6cd7a559
commit
b03e79f9a5
|
@ -187,7 +187,7 @@ void LocationBar::showDomainCompletion(const QString &completion)
|
|||
|
||||
// We need to manually force the completion because model is updated asynchronously
|
||||
// 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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user