From feef0396836668db950026ce637ce805900dc1d7 Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Wed, 29 Jan 2003 02:20:02 +0000 Subject: Don't do a g_assert_not_reached () if we don't have any dialog types. 2003-01-29 Glynn Foster * src/main.c: Don't do a g_assert_not_reached () if we don't have any dialog types. --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 13399236..233aba53 100644 --- a/src/main.c +++ b/src/main.c @@ -1020,6 +1020,10 @@ main (gint argc, gchar **argv) { case MODE_ABOUT: zenity_about (results->data); break; + case MODE_LAST: + g_printerr (_("You must specify a dialog type. See 'zenity --help' for details\n")); + zenity_free_parsing_options (); + exit (-1); default: g_assert_not_reached (); zenity_free_parsing_options (); -- cgit