diff options
-rw-r--r-- | src/toolbars/find-toolbar.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/toolbars/find-toolbar.c b/src/toolbars/find-toolbar.c index 42c2a9a..f89f084 100644 --- a/src/toolbars/find-toolbar.c +++ b/src/toolbars/find-toolbar.c @@ -183,7 +183,18 @@ static void failed_to_find_text_cb(WebKitFindController G_GNUC_UNUSED *find_controller, MqFindToolbar *find_toolbar) { - guint32 find_options; + const gchar *search_text; + guint32 find_options; + + search_text = webkit_find_controller_get_search_text( + find_toolbar->find_controller); + + if (!search_text[0]) { + /* Search entry cleared. */ + gtk_spinner_stop(find_toolbar->spinner); + gtk_label_set_text(GTK_LABEL(find_toolbar->matches_label), ""); + return; + } find_options = webkit_find_controller_get_options( find_toolbar->find_controller); |