diff options
author | deva <deva> | 2010-08-13 08:24:46 +0000 |
---|---|---|
committer | deva <deva> | 2010-08-13 08:24:46 +0000 |
commit | db2fdbe872cc6c1b224a1c4c735fac4369b3802e (patch) | |
tree | cb85d03da44b457c97c2595f8550d91ea7bb6a6d /client/macrowindow.cc | |
parent | bc229dbfabdf6a59453605e7652f04a268605b3a (diff) |
Add missing children widgets to actual layouts.
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r-- | client/macrowindow.cc | 7 |
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") { |