mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
LocationBar: Fix Ctrl+Enter when text already ends with .com
Don't append another .com when the text in locationbar already ends with .com. Closes #1737
This commit is contained in:
parent
4f04e6e8e2
commit
aa0ec8cbc0
@ -480,7 +480,8 @@ void LocationBar::keyPressEvent(QKeyEvent* event)
|
||||
case Qt::Key_Enter:
|
||||
switch (event->modifiers()) {
|
||||
case Qt::ControlModifier:
|
||||
setText(text().append(QLatin1String(".com")));
|
||||
if (!text().endsWith(QL1S(".com")))
|
||||
setText(text().append(QL1S(".com")));
|
||||
requestLoadUrl();
|
||||
m_holdingAlt = false;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user