summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r--client/macrowindow.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc
index 38e466d..c439497 100644
--- a/client/macrowindow.cc
+++ b/client/macrowindow.cc
@@ -101,13 +101,8 @@ void MacroWindow::initMacro(QDomNode &node)
((ResumeWidget*)collapsedWidget())->setText(resume, state);
} else if(xml_elem.tagName() == "script") {
- if(xml_elem.hasAttribute("language") &&
- xml_elem.attribute("language") == "lua") {
- // luaprograms.push_back(xml_elem.text());
+ if(xml_elem.attribute("language", "lua") == "lua") {
this->lua->runScript(xml_elem.text(), NULL, "preload");
- } else {
- printf("Unknown script type %s\n",
- xml_elem.attribute("language").toStdString().c_str());
}
} else if(xml_elem.tagName() == "widgets") {