diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-01-13 23:30:14 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-01-13 23:30:14 +0100 |
commit | d9d2c0c13fe330944c4ca1b54a1f46c303037508 (patch) | |
tree | 81856576388f7f0459b0c6bb6ce2ec1c88af0c7a /src/urlbar | |
parent | Make Unlink translatable (diff) | |
download | rekonq-d9d2c0c13fe330944c4ca1b54a1f46c303037508.tar.xz |
Do NOT clean up urlbar on page errors
Diffstat (limited to 'src/urlbar')
-rw-r--r-- | src/urlbar/urlbar.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index 4aeec1b2..947e0910 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -180,17 +180,12 @@ UrlBar::~UrlBar() void UrlBar::setQUrl(const QUrl& url) { if (url.scheme() == QL1S("about")) - { - clear(); - setFocus(); - } - else - { - clearFocus(); - KLineEdit::setUrl(url); - setCursorPosition(0); - refreshFavicon(); - } + return; + + clearFocus(); + KLineEdit::setUrl(url); + setCursorPosition(0); + refreshFavicon(); } |