aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/sctp_error_dlg.c
diff options
context:
space:
mode:
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-04 22:45:15 +0000
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-04 22:45:15 +0000
commit5c19765994251e2603eccf358526dece2777e304 (patch)
tree9adcbe7f17593e80ef63bc5a45c9668e64725fb3 /gtk/sctp_error_dlg.c
parent92b1a9d2a27a1ae9a2af1a840cfd5d93dc778d28 (diff)
Update to versions compiling on and working on Windows and Unix.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13295 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/sctp_error_dlg.c')
-rw-r--r--gtk/sctp_error_dlg.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/sctp_error_dlg.c b/gtk/sctp_error_dlg.c
index 95be56d2c4..ecb8c94ac9 100644
--- a/gtk/sctp_error_dlg.c
+++ b/gtk/sctp_error_dlg.c
@@ -30,7 +30,7 @@
#include "globals.h"
#include "epan/filesystem.h"
-
+#include "simple_dialog.h"
#include "tap_menu.h"
#include "dlg_utils.h"
#include "ui_util.h"
@@ -259,10 +259,11 @@ void sctp_error_dlg_show(sctp_assoc_info_t* assoc)
{
GList *list;
-printf("dlg_show\n");
/* selected_assoc=(sctp_assoc_info_t*)get_selected_assoc(); */
list =assoc->error_info_list;
+ if (list != NULL)
+ {
if (sctp_error_dlg != NULL) {
/* There's already a dialog box; reactivate it. */
reactivate_window(sctp_error_dlg);
@@ -272,11 +273,14 @@ printf("dlg_show\n");
}
}
else {
- printf("else\n");
/* Create and show the dialog box */
gtk_sctperror_dlg();
sctp_error_dlg_update(list);
}
+ }
+ else
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
+ "No errors found!");
}