summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index 91d87a7..14ed60b 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -125,9 +125,12 @@ void MainWindow::update()
QDomNodeList macronodes = coursenode.childNodes();
for(int j = 0; j < macronodes.count(); j++) {
+
QDomNode macronode = macronodes.at(j);
QDomElement macroelement = macronode.toElement();
+ // printf("%s\n", macroelement.tagName().toStdString().c_str());
+
QString macroname = macroelement.attribute("name");
bool found = false;
@@ -137,7 +140,8 @@ void MainWindow::update()
i++;
}
- if(found == false || macroelement.hasAttribute("header")) {
+ // if(found == false || macroelement.hasAttribute("header")) {
+ if(found == false || macroelement.tagName() == "header") {
QString num;
num.sprintf("%04d", j);
Macro macro(macronode);