summaryrefslogtreecommitdiff
path: root/src/urlbar/urlbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbar/urlbar.cpp')
-rw-r--r--src/urlbar/urlbar.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index 274de8ab..2dca0ac0 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -888,3 +888,11 @@ void UrlBar::removeFromFavorites()
updateRightIcons();
}
}
+
+
+void UrlBar::clearUrlbar()
+{
+ clear();
+ clearRightIcons();
+ setFocus();
+}