summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")) {