diff options
author | William Jon McCann <jmccann@redhat.com> | 2012-12-09 23:41:01 +0800 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2012-12-09 23:48:11 +0800 |
commit | d7760e521f4fe12b04a667bd50cf8fc2dcd87157 (patch) | |
tree | 8648ebb4f55ae300f3ff6631f3ac5faba7867a12 /src | |
parent | 772c4b8100400dc436c2556ade0dfe578b26d668 (diff) | |
download | gsoc2013-epiphany-d7760e521f4fe12b04a667bd50cf8fc2dcd87157.tar gsoc2013-epiphany-d7760e521f4fe12b04a667bd50cf8fc2dcd87157.tar.gz gsoc2013-epiphany-d7760e521f4fe12b04a667bd50cf8fc2dcd87157.tar.bz2 gsoc2013-epiphany-d7760e521f4fe12b04a667bd50cf8fc2dcd87157.tar.lz gsoc2013-epiphany-d7760e521f4fe12b04a667bd50cf8fc2dcd87157.tar.xz gsoc2013-epiphany-d7760e521f4fe12b04a667bd50cf8fc2dcd87157.tar.zst gsoc2013-epiphany-d7760e521f4fe12b04a667bd50cf8fc2dcd87157.zip |
Don't perform empty searches when toggling case matches
https://bugzilla.gnome.org/show_bug.cgi?id=684023
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-find-toolbar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index 901dc68b3..d2c504e2b 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -501,6 +501,9 @@ case_sensitive_toggled_cb (GtkWidget *check, (proxy, G_CALLBACK (case_sensitive_menu_toggled_cb), toolbar); } + if (gtk_entry_get_text_length (GTK_ENTRY (toolbar->priv->entry)) == 0) + return; + #ifdef HAVE_WEBKIT2 do_search (toolbar); #else |