diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-04-27 20:52:56 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-04-27 20:52:56 +0000 |
commit | 073da09b292ce0344a6e2244b6e6b7fec04fb787 (patch) | |
tree | f1c770e4be851dc1598815d2375745f1f01a4bf9 /gtk/capture_dlg.c | |
parent | e5af03f331b57aa7ac1433627f31da1172b11ce5 (diff) | |
download | wireshark-073da09b292ce0344a6e2244b6e6b7fec04fb787.tar.gz wireshark-073da09b292ce0344a6e2244b6e6b7fec04fb787.tar.bz2 wireshark-073da09b292ce0344a6e2244b6e6b7fec04fb787.zip |
fix #117
give a warning, if user never selected an interface before
svn path=/trunk/; revision=14208
Diffstat (limited to 'gtk/capture_dlg.c')
-rw-r--r-- | gtk/capture_dlg.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c index 87129779e0..ba9789fd2a 100644 --- a/gtk/capture_dlg.c +++ b/gtk/capture_dlg.c @@ -1210,6 +1210,16 @@ capture_start_confirmed(void) { gchar *if_device; gchar *if_name; + /* did the user ever selected a capture interface before? */ + if(prefs.capture_device == NULL) { + simple_dialog(ESD_TYPE_CONFIRMATION, + ESD_BTN_OK, + PRIMARY_TEXT_START "No capture interface selected!" PRIMARY_TEXT_END "\n\n" + "To select an interface use:\n\n" + "Capture->Options (until Ethereal is stopped)\n" + "Edit->Preferences/Capture (permanent, if saved)"); + return; + } if_device = g_strdup(prefs.capture_device); if_name = get_if_name(if_device); capture_opts->iface = g_strdup(if_name); |