[Uml-devel] [Bug 283744] Junk residual artifacts littering project file

Oliver Kellogg okellogg at users.sourceforge.net
Thu Feb 9 19:26:06 UTC 2012


--- Comment #10 from Oliver Kellogg <okellogg users sourceforge net>  2012-02-09 19:26:05 ---
Created an attachment (id=68657)
 --> (http://bugs.kde.org/attachment.cgi?id=68657)
diff against trunk/KDE/kdesdk/umbrello/umbrello/widgets/widgetbase.cpp r1273456

Next wierdness: Approx. 315 warnings of the kind:
AssociationLine::setAssociation: Parent is null. Can not connect SIGNAL/SLOT

The call stack of these warnings is as follows:

AssociationLine::setAssociation() has this in line 626:

    UMLView * view =  (UMLView *)m_associationWidget->parent();

and the view comes back as NULL.
The parent() method originates in class QObject.
The member m_associationWidget is of type AssociationWidget, and this class
inherits from WidgetBase which in turn inherits from QObject.

In widgetbase.cpp r1268720, the constructor of WidgetBase looks like this:

WidgetBase::WidgetBase(UMLView *view) : QObject(view)
{ ... }

However, this was changed in r1268798:

WidgetBase::WidgetBase(UMLScene *scene)
  : m_scene(scene)
{ ... }

Therefore the parent is no longer set in QObject.

The attached patch restores the previous setting of the parent in QObject
and thus removes the warnings mentioned above.

Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the umbrello-devel mailing list