aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-find-toolbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-find-toolbar.c')
-rw-r--r--src/ephy-find-toolbar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index bd550a635..dd2d642e7 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -263,6 +263,9 @@ real_find (EphyFindToolbarPrivate *priv,
WebKitWebView *web_view = priv->web_view;
gboolean case_sensitive = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->case_sensitive));
+ if (!priv->find_string || !g_strcmp0 (priv->find_string, ""))
+ return EPHY_FIND_NOTFOUND;
+
if (!webkit_web_view_search_text
(web_view, priv->find_string, case_sensitive, TRUE, FALSE)) {
/* not found, try to wrap */