[anjuta] build: bgo#612959 - Anjuta crashes when clicked 'Compile'
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] build: bgo#612959 - Anjuta crashes when clicked 'Compile'
- Date: Mon, 15 Mar 2010 20:45:00 +0000 (UTC)
commit 9322fe4771b0928222f43ce099f793bd7a5c64f8
Author: Sébastien Granjoux <seb sfo free fr>
Date: Mon Mar 15 21:41:09 2010 +0100
build: bgo#612959 - Anjuta crashes when clicked 'Compile'
plugins/build-basic-autotools/plugin.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/build-basic-autotools/plugin.c b/plugins/build-basic-autotools/plugin.c
index 1669ba3..c3d0770 100644
--- a/plugins/build-basic-autotools/plugin.c
+++ b/plugins/build-basic-autotools/plugin.c
@@ -2016,6 +2016,10 @@ build_configure_dialog (BasicAutotoolsPlugin *plugin, BuildFunc func, const gcha
run_autogen = !directory_has_file (plugin->project_root_dir, "configure");
anjuta_shell_get_value (ANJUTA_PLUGIN (plugin)->shell, IANJUTA_PROJECT_MANAGER_PROJECT_ROOT_URI, &value, NULL);
+
+ /* In case, a project is not loaded */
+ if (!G_VALUE_HOLDS_STRING (&value)) return;
+
project_root = g_value_get_string (&value);
parent = GTK_WINDOW (ANJUTA_PLUGIN(plugin)->shell);
@@ -2088,7 +2092,7 @@ build_configure_and_build (BasicAutotoolsPlugin *plugin, BuildFunc func, const g
has_makefile = directory_has_makefile (build_dir);
g_free (build_dir);
- if (!has_makefile)
+ if (!has_makefile && (plugin->project_root_dir != NULL))
{
/* Run configure first */
build_configure_dialog (plugin, func, name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]