diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-11-18 14:36:48 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-11-18 14:36:48 +0000 |
commit | bd37f5cfbbf665b283182a9aa304857ae7163bd1 (patch) | |
tree | ba55df526ec776790b2a3deeb0ebb14e9d36a57e /gtk | |
parent | 5bb3acbfa3fdb2168e42f92d63b2f9d0c17433a0 (diff) |
Check if selected packet is already selected before doing any updates.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26803 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/main_packet_list.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/main_packet_list.c b/gtk/main_packet_list.c index 1b756c3737..33c197cf28 100644 --- a/gtk/main_packet_list.c +++ b/gtk/main_packet_list.c @@ -267,6 +267,11 @@ static void packet_list_select_cb(GtkWidget *w _U_, gint row, gint col _U_, GdkEventButton *event _U_, gpointer evt _U_) { frame_data *fdata; + /* Check if already selected */ + if (cfile.current_frame && + (gtk_clist_find_row_from_data(GTK_CLIST(packet_list), cfile.current_frame) == row)) + return; + /* Remove the hex display tabbed pages */ while( (gtk_notebook_get_nth_page( GTK_NOTEBOOK(byte_nb_ptr), 0))) gtk_notebook_remove_page( GTK_NOTEBOOK(byte_nb_ptr), 0); |