summaryrefslogtreecommitdiff
path: root/src/urlbar/urlbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-14 12:06:22 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-14 12:06:22 +0200
commit14cbcb6f931a03edb9a2a6a70cb0cb0c9bd77c90 (patch)
tree733c846bfb0df337c7cb10a9652f45c033ba6792 /src/urlbar/urlbar.cpp
parentImplement TZander suggestions on closing the last tab (diff)
downloadrekonq-14cbcb6f931a03edb9a2a6a70cb0cb0c9bd77c90.tar.xz
No wait for first results
Diffstat (limited to 'src/urlbar/urlbar.cpp')
-rw-r--r--src/urlbar/urlbar.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index e1e542b7..b1bfb1c0 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -398,7 +398,11 @@ void UrlBar::resizeEvent(QResizeEvent *event)
void UrlBar::detectTypedString(const QString &typed)
{
- Q_UNUSED(typed);
+ if(typed.count() == 1)
+ {
+ QTimer::singleShot(0, this, SLOT(suggest()));
+ return;
+ }
if(_suggestionTimer->isActive())
_suggestionTimer->stop();
@@ -410,4 +414,4 @@ void UrlBar::suggest()
{
if(!_box.isNull())
_box.data()->suggestUrls( text() );
-} \ No newline at end of file
+}