[epiphany] Don't perform empty searches when toggling case matches
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Don't perform empty searches when toggling case matches
- Date: Sun, 9 Dec 2012 15:48:42 +0000 (UTC)
commit d7760e521f4fe12b04a667bd50cf8fc2dcd87157
Author: William Jon McCann <jmccann redhat com>
Date: Sun Dec 9 16:41:01 2012 +0100
Don't perform empty searches when toggling case matches
https://bugzilla.gnome.org/show_bug.cgi?id=684023
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 901dc68..d2c504e 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]