summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2013-06-19 10:14:02 +0100
committerThomas Wood <thomas.wood@intel.com>2013-06-19 10:14:02 +0100
commitda4b2f0a899f00a0e5b9e66d4d6d92ea9637a38a (patch)
tree7c7eb9e42d909f005a3107137ab094bcd295eb24 /shell
parentd5a7c75134c4ba9530a1cae37e20f1c06c98fc5b (diff)
downloadgnome-control-center-da4b2f0a899f00a0e5b9e66d4d6d92ea9637a38a.tar.gz
shell: ensure a search is in progress before activating a panel
https://bugzilla.gnome.org/show_bug.cgi?id=702469
Diffstat (limited to 'shell')
-rw-r--r--shell/cc-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 739443640..d035d3b74 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -629,7 +629,8 @@ search_entry_key_press_event_cb (GtkEntry *entry,
{
CcWindowPrivate *priv = self->priv;
- if (event->keyval == GDK_KEY_Return)
+ if (event->keyval == GDK_KEY_Return &&
+ g_strcmp0 (priv->filter_string, "") != 0)
{
GtkTreePath *path;
GtkTreeSelection *selection;