aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@ns.aus.com>2003-12-18 20:36:45 +0000
committerRichard Sharpe <sharpe@ns.aus.com>2003-12-18 20:36:45 +0000
commit0023dcd0e136b8478b3bcf392f9d7a52f9dc4e92 (patch)
tree1e1a0b8659b785ebb039d83d471901b0d4b9eb08
parent604aa6faebad58368b66f60daffa3d158c0059b7 (diff)
A small patch from Kai Krueger <kai@kruegernetz.de> to ensure that we
keep the file name around long enough to use it when saving highlighted data etc. svn path=/trunk/; revision=9348
-rw-r--r--gtk/proto_draw.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/proto_draw.c b/gtk/proto_draw.c
index a178043486..31eebf61db 100644
--- a/gtk/proto_draw.c
+++ b/gtk/proto_draw.c
@@ -1,7 +1,7 @@
/* proto_draw.c
* Routines for GTK+ packet display
*
- * $Id: proto_draw.c,v 1.73 2003/12/17 23:41:10 ulfl Exp $
+ * $Id: proto_draw.c,v 1.74 2003/12/18 20:36:45 sharpe Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -871,8 +871,6 @@ savehex_save_clicked_cb(GtkWidget * w _U_, gpointer data _U_)
file = (char *)gtk_entry_get_text(GTK_ENTRY(file_entry));
- /* Get rid of the dialog box */
- gtk_widget_destroy(GTK_WIDGET(savehex_dlg));
if (!file ||! *file) {
return; /* XXX, put up an error box */
}
@@ -902,6 +900,9 @@ savehex_save_clicked_cb(GtkWidget * w _U_, gpointer data _U_)
}
write(fd, data_p + start, end - start);
close(fd);
+
+ /* Get rid of the dialog box */
+ gtk_widget_destroy(GTK_WIDGET(savehex_dlg));
}