[anjuta] build-basic-auotools: bgo#626562 crash refusing to clean the configuration
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] build-basic-auotools: bgo#626562 crash refusing to clean the configuration
- Date: Thu, 12 Aug 2010 19:14:37 +0000 (UTC)
commit 1a411c06f60f3d13c82aa93be20eddd56bcb2a3a
Author: Johannes Schmid <jhs gnome org>
Date: Thu Aug 12 21:12:55 2010 +0200
build-basic-auotools: bgo#626562 crash refusing to clean the configuration
plugins/build-basic-autotools/plugin.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/plugins/build-basic-autotools/plugin.c b/plugins/build-basic-autotools/plugin.c
index acbd996..8e37fa0 100644
--- a/plugins/build-basic-autotools/plugin.c
+++ b/plugins/build-basic-autotools/plugin.c
@@ -1521,13 +1521,10 @@ build_save_distclean_and_execute_command (BasicAutotoolsPlugin* bplugin, BuildPr
// Need to run make clean before
if (!anjuta_util_dialog_boolean_question (GTK_WINDOW (ANJUTA_PLUGIN (bplugin)->shell), _("Before using this new configuration, the default one needs to be removed. Do you want to do that ?"), NULL))
{
- GError *err;
-
- err = g_error_new (ianjuta_builder_error_quark (),
- IANJUTA_BUILDER_CANCELED,
- _("Command canceled by user"));
-
- build_program_callback (context->program, G_OBJECT (bplugin), context, err);
+ if (err)
+ *err = g_error_new (ianjuta_builder_error_quark (),
+ IANJUTA_BUILDER_CANCELED,
+ _("Command canceled by user"));
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]