From 2fbc9ac0710629ba76bd6b6e7593843751b286c2 Mon Sep 17 00:00:00 2001
From: deva <deva>
Date: Wed, 5 Aug 2009 13:36:00 +0000
Subject: Split requires attribute on words, instead of just ','.

---
 client/macro.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/macro.cc b/client/macro.cc
index 7a1b51b..d207474 100644
--- a/client/macro.cc
+++ b/client/macro.cc
@@ -64,7 +64,7 @@ void Macro::init(QBoxLayout *layout, Macros &macros, bool initialising, NetCom &
 
   if(xml_elem.hasAttribute("requires")) {
     // Read and parse requirement list.
-    requires = xml_elem.attribute("requires").split(",");
+    requires = xml_elem.attribute("requires").split(QRegExp("\\W+"), QString::SkipEmptyParts);
   }
 
   //  if(xml_elem.hasAttribute("header")) {
-- 
cgit v1.2.3