summaryrefslogtreecommitdiff
path: root/src/urlbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbar.cpp')
-rw-r--r--src/urlbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urlbar.cpp b/src/urlbar.cpp
index ba9773db..c2c28954 100644
--- a/src/urlbar.cpp
+++ b/src/urlbar.cpp
@@ -229,7 +229,7 @@ void UrlBar::paintEvent(QPaintEvent *event)
void UrlBar::focusOutEvent(QFocusEvent *event)
{
// set back last loaded url in case user cleared it
- setUrl(m_currentUrl);
+ if (!m_currentUrl.equals(KUrl(lineEdit()->text()))) setUrl(m_currentUrl);
KHistoryComboBox::focusOutEvent(event);
}