[gnome-builder] foundry: require project before introspecting environment



commit a10674efca1eab9e6e01542ddd0eef53ab9fa275
Author: Christian Hergert <chergert redhat com>
Date:   Tue Apr 23 16:36:53 2019 -0700

    foundry: require project before introspecting environment
    
    Only projects have environments, and accessing them will cause foundry
    subsystems to be created unnecessarily.

 src/libide/foundry/ide-build-system.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libide/foundry/ide-build-system.c b/src/libide/foundry/ide-build-system.c
index d65345da2..0d5c747ba 100644
--- a/src/libide/foundry/ide-build-system.c
+++ b/src/libide/foundry/ide-build-system.c
@@ -119,6 +119,7 @@ ide_build_system_real_get_build_flags_async (IdeBuildSystem      *self,
     }
 
   if (!(context = ide_object_ref_context (IDE_OBJECT (self))) ||
+      !ide_context_has_project (context) ||
       !(build_manager = ide_build_manager_from_context (context)) ||
       !(pipeline = ide_build_manager_get_pipeline (build_manager)) ||
       !(config = ide_pipeline_get_config (pipeline)) ||


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]