summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2010-05-03 10:41:34 +0000
committerdeva <deva>2010-05-03 10:41:34 +0000
commit10db0da7067c93333ab2a9ad5bf15f8ce99b6b3b (patch)
tree2c84adff001111b86c9fd6b599cba2252f1e77da
parent76aaf6405c70f2238567cb292935b765f55c141c (diff)
Handle error_box result.
-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);