Commit 5cbd9860 authored by Sebastien Granjoux's avatar Sebastien Granjoux

pm: Fix updating target properties

parent b2539378
......@@ -2417,7 +2417,10 @@ amp_set_property_work (PmJob *job)
}
else if (flags & AM_PROPERTY_IN_MAKEFILE)
{
amp_project_update_am_property (AMP_PROJECT (job->user_data), job->node, job->property);
if (((AmpProperty *)job->property->native)->suffix != NULL)
{
amp_project_update_am_property (AMP_PROJECT (job->user_data), job->node, job->property);
}
}
return TRUE;
......
......@@ -617,6 +617,7 @@ on_properties_dialog_response (GtkWidget *dialog,
PropertyEntry *entry = (PropertyEntry *)item->data;
AnjutaProjectProperty *prop;
const gchar *text;
gboolean active;
/* Get property value in node */
prop = anjuta_project_node_get_property (table->node, entry->property);
......@@ -651,8 +652,10 @@ on_properties_dialog_response (GtkWidget *dialog,
}
break;
case ANJUTA_PROJECT_PROPERTY_BOOLEAN:
active = prop->value == NULL ? FALSE : (*prop->value == '1' ? TRUE : FALSE);
text = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (entry->entry)) ? "1" : "0";
if (g_strcmp0 (prop->value, text) != 0)
if (active != (*text == '1'))
{
/* Modified */
PropertyValue *value;
......
......@@ -391,7 +391,7 @@ anjuta_pm_project_set_properties (AnjutaPmProject *project, AnjutaProjectNode *n
for (item = g_list_first (properties); item != NULL; item = g_list_next (item))
{
AnjutaProjectPropertyValue *prop = (AnjutaProjectPropertyValue *)item->data;
valid = ianjuta_project_set_property (project->project, node, prop->property, prop->value, error) != NULL;
if (!valid) break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment