diff options
Diffstat (limited to 'client/widgets/frame.cc')
-rw-r--r-- | client/widgets/frame.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/client/widgets/frame.cc b/client/widgets/frame.cc index b993f9a..d700b1b 100644 --- a/client/widgets/frame.cc +++ b/client/widgets/frame.cc @@ -29,7 +29,14 @@ Frame::Frame(QDomNode node) : QGroupBox() { QDomElement elem = node.toElement(); - widget_name = elem.attribute("name"); + + if(elem.hasAttribute("name")) { + widget_name = elem.attribute("name"); + } else { + printf("XML ERROR!! Unnamed widget of type: %s\n", + elem.tagName().toStdString().c_str()); + } + setTitle(elem.attribute("caption")); } |