forked from osmocom/wireshark
Check if a packet is selected before trying to build a display filter based
on the "selected" packet. Fixes bug 2020. svn path=/trunk/; revision=23596
This commit is contained in:
parent
b19c9f164e
commit
24c8b3a4b7
|
@ -368,6 +368,7 @@ conversation_cb(GtkWidget * w, gpointer data _U_, int action)
|
|||
gchar *filter;
|
||||
GtkWidget *filter_te;
|
||||
|
||||
if (cfile.finfo_selected) {
|
||||
/* create a filter-string based on the selected packet and action */
|
||||
filter = build_conversation_filter(action, TRUE);
|
||||
|
||||
|
@ -379,6 +380,7 @@ conversation_cb(GtkWidget * w, gpointer data _U_, int action)
|
|||
|
||||
g_free(filter);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
colorize_conversation_cb(GtkWidget * w _U_, gpointer data _U_, int action)
|
||||
|
@ -388,7 +390,7 @@ colorize_conversation_cb(GtkWidget * w _U_, gpointer data _U_, int action)
|
|||
if( (action>>8) == 255 ) {
|
||||
color_filters_reset_tmp();
|
||||
cf_colorize_packets(&cfile);
|
||||
} else {
|
||||
} else if (cfile.finfo_selected) {
|
||||
if( (action&0xff) == 0 ) {
|
||||
/* colorize_conversation_cb was called from the window-menu
|
||||
* or through an accelerator key. Try to build a conversation
|
||||
|
|
Loading…
Reference in New Issue