aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-07-03 09:34:27 +0000
committerGuy Harris <guy@alum.mit.edu>2000-07-03 09:34:27 +0000
commite4a9d0f426c411c0555b7e940e5dbeb02f08e473 (patch)
treebe688addd1d5ff7be4be52caedf00e8030edb56e /file.c
parent9e42b3a4edee724033766982c633e70bc621be87 (diff)
If the user clicks the "Cancel" button in a progress-bar dialog box for
reading a capture file, we should just clean up and return so that Ethereal continues running with no capture file loaded, unless the read is being done as a result of Ethereal being run with the "-r" flag, in which case we still exit (although we may eventually choose to continue running with no capture file loaded even in that case). svn path=/trunk/; revision=2104
Diffstat (limited to 'file.c')
-rw-r--r--file.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/file.c b/file.c
index 0e743a88bb..f4e8a97ff6 100644
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.193 2000/07/03 08:35:39 guy Exp $
+ * $Id: file.c,v 1.194 2000/07/03 09:34:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -1710,9 +1710,10 @@ done:
break;
case READ_ABORTED:
- /* Exit by leaving the main loop, so that any quit functions
- we registered get called. */
- gtk_main_quit();
+ /* The user bailed out of re-reading the capture file; the
+ capture file has been closed - just return (without
+ changing any menu settings; "close_cap_file()" set them
+ correctly for the "no capture file open" state). */
return 0;
}
set_menus_for_unsaved_capture_file(FALSE);