Commit 3d884038 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

umbrello/umlscene.cpp

- In function selectedMessageWidgets loop of QGraphicsItem* over items,
  if dynamic_cast<MessageWidget*>(item) returns null then print debug
  message "item is not a MessageWidget".
parent 8bd36e23
...@@ -1429,8 +1429,15 @@ UMLWidgetList UMLScene::selectedMessageWidgets() const ...@@ -1429,8 +1429,15 @@ UMLWidgetList UMLScene::selectedMessageWidgets() const
UMLWidgetList widgets; UMLWidgetList widgets;
foreach(QGraphicsItem *item, items) { foreach(QGraphicsItem *item, items) {
MessageWidget *w = dynamic_cast<MessageWidget*>(item); MessageWidget *w = dynamic_cast<MessageWidget*>(item);
if (w) if (w) {
widgets.append(w); widgets.append(w);
} else {
WidgetBase *wb = dynamic_cast<WidgetBase*>(item);
QString name;
if (wb)
name = wb->name();
DEBUG(DBG_SRC) << name << " is not a MessageWidget";
}
} }
return widgets; return widgets;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment