summaryrefslogtreecommitdiff
path: root/src/progress.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/progress.c')
-rw-r--r--src/progress.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/progress.c b/src/progress.c
index 734dd73..dfe9cef 100644
--- a/src/progress.c
+++ b/src/progress.c
@@ -152,6 +152,11 @@ zenity_progress_handle_stdin (GIOChannel *channel,
if (glade_dialog)
g_object_unref (glade_dialog);
+ if (progress_data->autoclose) {
+ zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK);
+ gtk_main_quit();
+ }
+
g_io_channel_shutdown (channel, TRUE, NULL);
return FALSE;
}