summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/urlbar/urlbar.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index 0a6783af..078dc6a6 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -285,6 +285,9 @@ void UrlBar::keyPressEvent(QKeyEvent *event)
else if (event->key() == Qt::Key_Escape)
{
clearFocus();
+ if (text() != rApp->mainWindow()->currentTab()->view()->url().toString()
+ && !rApp->mainWindow()->currentTab()->view()->url().toString().startsWith("about"))
+ setText(rApp->mainWindow()->currentTab()->view()->url().toString());
event->accept();
}