summaryrefslogtreecommitdiff
path: root/client/macro.cc
diff options
context:
space:
mode:
authordeva <deva>2009-08-05 13:36:00 +0000
committerdeva <deva>2009-08-05 13:36:00 +0000
commit2fbc9ac0710629ba76bd6b6e7593843751b286c2 (patch)
tree51e82ae90f7ebcef7557305c2f3f57d6f4d59b5d /client/macro.cc
parent44425239943e93df047a829b4af770bf9acf848e (diff)
Split requires attribute on words, instead of just ','.
Diffstat (limited to 'client/macro.cc')
-rw-r--r--client/macro.cc2
1 files changed, 1 insertions, 1 deletions
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")) {