forked from osmocom/wireshark
Apply filter if pressing enter when having a auto completion window
and nothing is selected. This fixes bug 6228. svn path=/trunk/; revision=38444
This commit is contained in:
parent
748d803b50
commit
c749f0b7b9
1 changed files with 6 additions and 3 deletions
|
@ -575,6 +575,12 @@ filter_string_te_key_pressed_cb(GtkWidget *filter_te, GdkEventKey *event, gpoint
|
|||
autocomplete_protocol_string(filter_te, value);
|
||||
g_free(value);
|
||||
}
|
||||
if(k == GDK_Return || k == GDK_KP_Enter) {
|
||||
stop_propagation = TRUE; /* stop event propagation */
|
||||
}
|
||||
} else if(k == GDK_Return || k == GDK_KP_Enter) {
|
||||
/* Nothing selected, continue propagation */
|
||||
stop_propagation = FALSE;
|
||||
}
|
||||
|
||||
/* Lose popup */
|
||||
|
@ -603,9 +609,6 @@ filter_string_te_key_pressed_cb(GtkWidget *filter_te, GdkEventKey *event, gpoint
|
|||
|
||||
g_free(prefix_start);
|
||||
|
||||
if(k == GDK_Return || k == GDK_KP_Enter)
|
||||
return TRUE; /* stop event propagation */
|
||||
|
||||
return stop_propagation;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue