From 10db0da7067c93333ab2a9ad5bf15f8ce99b6b3b Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 3 May 2010 10:41:34 +0000 Subject: Handle error_box result. --- client/mainwindow.cc | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #include #include +#include #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); -- cgit v1.2.3