Commit 1e6f4b53 authored by Jan Möbius's avatar Jan Möbius
Browse files

Added security check to avoid adding child twice to a baseObject

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2dfd8b53
......@@ -363,7 +363,10 @@ void BaseObject::setParent(BaseObject* _parent) {
void BaseObject::appendChild(BaseObject *item)
if ( !childItems_.contains(item) )
std::cerr << "Warning! Trying to append a child twice! Remove the append calls from your File plugin!" << std::endl;
BaseObject *BaseObject::child(int row)
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