summaryrefslogtreecommitdiff
path: root/ui/gtk/packet_list.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-12-22 21:14:13 +0000
committerEvan Huus <eapache@gmail.com>2012-12-22 21:14:13 +0000
commit52aff57285693a6f56ada90359cf71b6b894b01e (patch)
tree6f242d491c9f66bd70335482478aad9684219b8a /ui/gtk/packet_list.c
parentd9cca759e53f9f6428d1b3427d31d06e7f82c9e2 (diff)
downloadwireshark-52aff57285693a6f56ada90359cf71b6b894b01e.tar.gz
Remove unneeded initializations, and one redundant if condition.
svn path=/trunk/; revision=46702
Diffstat (limited to 'ui/gtk/packet_list.c')
-rw-r--r--ui/gtk/packet_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/packet_list.c b/ui/gtk/packet_list.c
index 4f382ac7be..1c5b364415 100644
--- a/ui/gtk/packet_list.c
+++ b/ui/gtk/packet_list.c
@@ -1239,7 +1239,7 @@ packet_list_select_cb(GtkTreeView *tree_view, gpointer data _U_)
cf_select_packet(&cfile, row);
/* If searching the tree, set the focus there; otherwise, focus on the packet list */
- if (cfile.search_in_progress && (cfile.decode_data || cfile.decode_data)) {
+ if (cfile.search_in_progress && cfile.decode_data) {
gtk_widget_grab_focus(tree_view_gbl);
} else {
gtk_widget_grab_focus(packetlist->view);