From d072dcd1ee143357c41e53ee94a4b6d13e48e2fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Mon, 23 Apr 2012 11:03:13 +0200
Subject: Avoid Swiften build failing when Qt is missing.

Resolves: #1076

diff --git a/Swift/SConscript b/Swift/SConscript
index b66058b..cee3a74 100644
--- a/Swift/SConscript
+++ b/Swift/SConscript
@@ -11,6 +11,7 @@ if env["SCONS_STAGE"] == "build" :
 			env["PROJECTS"].remove("Swift")
 	elif not GetOption("help") and not env.get("HAVE_QT", 0) :
 		print "Error: Swift requires Qt. Not building Swift."
-		env["PROJECTS"].remove("Swift")
+		if "Swift" in env["PROJECTS"] :
+			env["PROJECTS"].remove("Swift")
 	elif env["target"] == "native":
 		 SConscript("QtUI/SConscript")
-- 
cgit v0.10.2-6-g49f6