summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/mainwindow.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index 51bb772..aa2337e 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -37,6 +37,7 @@
#include <QScrollArea>
#include <QSettings>
#include <QStatusBar>
+#include <QMessageBox>
#include "macrodrawer.h"
@@ -122,6 +123,13 @@ void MainWindow::update()
QDomNodeList templates = xml_doc.documentElement().childNodes();
QDomNode templatenode = templates.at(0); // There can be only one! (Swush, flomp)
+
+ if(templatenode.toElement().tagName() == "error") {
+ QMessageBox::critical(this, "Error",
+ templatenode.toElement().text());
+ return;
+ }
+
updateTemplateHeaders(templatenode);