aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/sctp_error_dlg.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2005-02-04 22:45:15 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2005-02-04 22:45:15 +0000
commitb608b5e406915f2b871494823cbbdaffb1139749 (patch)
tree9adcbe7f17593e80ef63bc5a45c9668e64725fb3 /gtk/sctp_error_dlg.c
parent04a154ec0aad81adb92e1b0e575fb5f65e937449 (diff)
Update to versions compiling on and working on Windows and Unix.
svn path=/trunk/; revision=13295
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!");
}