diff options
author | deva <deva> | 2010-05-03 10:41:34 +0000 |
---|---|---|
committer | deva <deva> | 2010-05-03 10:41:34 +0000 |
commit | 10db0da7067c93333ab2a9ad5bf15f8ce99b6b3b (patch) | |
tree | 2c84adff001111b86c9fd6b599cba2252f1e77da | |
parent | 76aaf6405c70f2238567cb292935b765f55c141c (diff) |
Handle error_box result.
-rw-r--r-- | client/mainwindow.cc | 8 |
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); |