summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
authordeva <deva>2008-07-30 09:08:14 +0000
committerdeva <deva>2008-07-30 09:08:14 +0000
commit0289404a5649e7060688af830f5f66e6da112994 (patch)
tree92b12973f326e60f73f8ebea2a0557fd66c3d19d /client/macrowindow.cc
parent88e0d02c4119aff277a0e1767aa3a8e390ec740e (diff)
Removed obsolete editor.
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r--client/macrowindow.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc
index 764bf79..551c804 100644
--- a/client/macrowindow.cc
+++ b/client/macrowindow.cc
@@ -71,12 +71,17 @@ void MacroWindow::initMacro(QDomNode &node)
if(xml_elem.hasAttribute("name")) macro = xml_elem.attribute("name");
if(xml_elem.hasAttribute("version")) version = xml_elem.attribute("version");
- } else if(xml_elem.tagName() == "luaprograms") {
+ } else if(xml_elem.tagName() == "scripts") {
// Nothing to do here
- } else if(xml_elem.tagName() == "luaprogram") {
-
- if(xml_elem.hasAttribute("name")) {
- luaprograms[xml_elem.attribute("name")] = xml_elem.text();
+ } else if(xml_elem.tagName() == "script") {
+
+ if(xml_elem.hasAttribute("language") &&
+ xml_elem.attribute("language") == "lua") {
+ if(xml_elem.hasAttribute("name")) {
+ luaprograms[xml_elem.attribute("name")] = xml_elem.text();
+ }
+ } else {
+ printf("Unknown script type %s\n", xml_elem.attribute("language").toStdString().c_str());
}
} else if(xml_elem.tagName() == "window") {