aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main_packet_list.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-11-18 14:36:48 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-11-18 14:36:48 +0000
commitbfd1d4e42b249132474341c8808211ee0fb63dcb (patch)
treeba55df526ec776790b2a3deeb0ebb14e9d36a57e /gtk/main_packet_list.c
parente52a723f4c6c34dc9a379ca1658d4969020d6426 (diff)
Check if selected packet is already selected before doing any updates.
svn path=/trunk/; revision=26803
Diffstat (limited to 'gtk/main_packet_list.c')
-rw-r--r--gtk/main_packet_list.c5
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);