[gnome-builder] foundry: allow NULL build-target



commit 8588742725c7b1847bc28c510330cd8453c21a2f
Author: Christian Hergert <chergert redhat com>
Date:   Fri Feb 22 22:26:10 2019 -0800

    foundry: allow NULL build-target

 src/libide/foundry/ide-run-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/foundry/ide-run-manager.c b/src/libide/foundry/ide-run-manager.c
index 4e129aa9d..9c5ce5ae6 100644
--- a/src/libide/foundry/ide-run-manager.c
+++ b/src/libide/foundry/ide-run-manager.c
@@ -912,7 +912,7 @@ ide_run_manager_set_build_target (IdeRunManager  *self,
                                   IdeBuildTarget *build_target)
 {
   g_return_if_fail (IDE_IS_RUN_MANAGER (self));
-  g_return_if_fail (IDE_IS_BUILD_TARGET (build_target));
+  g_return_if_fail (!build_target || IDE_IS_BUILD_TARGET (build_target));
 
   if (build_target == self->build_target)
     return;


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