Commit 2c05d8e9 authored by Christian Hergert's avatar Christian Hergert
Browse files

buildui: only clear diagnostics if rebuilding

If we are not advancing to or past IDE_BUILD_PHASE_BUILD, then there is no
need to clear the previous diagnostics.

https://bugzilla.gnome.org/show_bug.cgi?id=779526
parent 6a454de6
......@@ -178,14 +178,17 @@ ide_build_panel_started (IdeBuildPanel *self,
g_assert (IDE_IS_BUILD_PANEL (self));
g_assert (IDE_IS_BUILD_PIPELINE (pipeline));
self->error_count = 0;
self->warning_count = 0;
if (phase >= IDE_BUILD_PHASE_BUILD)
{
self->error_count = 0;
self->warning_count = 0;
gtk_label_set_label (self->warnings_label, "—");
gtk_label_set_label (self->errors_label, "—");
gtk_label_set_label (self->warnings_label, "—");
gtk_label_set_label (self->errors_label, "—");
gtk_list_store_clear (self->diagnostics_store);
g_hash_table_remove_all (self->diags_hash);
gtk_list_store_clear (self->diagnostics_store);
g_hash_table_remove_all (self->diags_hash);
}
IDE_EXIT;
}
......
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