diff options
Diffstat (limited to 'src/urlbar/urlbar.cpp')
-rw-r--r-- | src/urlbar/urlbar.cpp | 8 |
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 +} |