From 8c35b4124c5d1bb6d413b5ea672132c3ff69edad Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 4 Aug 2013 19:33:23 +0200 Subject: gtkui: warn a user when he attempts to quit while background jobs are running --- plugins/converter/convgui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/converter') diff --git a/plugins/converter/convgui.c b/plugins/converter/convgui.c index 7147f09e..ccb15878 100644 --- a/plugins/converter/convgui.c +++ b/plugins/converter/convgui.c @@ -128,6 +128,7 @@ overwrite_prompt_cb (void *ctx) { static void converter_worker (void *ctx) { + deadbeef->background_job_increment (); converter_ctx_t *conv = ctx; char root[2000] = ""; @@ -243,6 +244,7 @@ converter_worker (void *ctx) { converter_plugin->encoder_preset_free (conv->encoder_preset); converter_plugin->dsp_preset_free (conv->dsp_preset); free (conv); + deadbeef->background_job_decrement (); } int -- cgit v1.2.3