mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-05-01 22:57:33 +02:00
parent
e498daaccf
commit
7a42aa22d0
@ -302,7 +302,8 @@ FWObject* ObjectManipulator::createObject(const QString &objType,
|
||||
qDebug("libs->count()=%d", m_objectManipulator->libs->count() );
|
||||
}
|
||||
|
||||
while ( lib->getId()==FWObjectDatabase::STANDARD_LIB_ID ||
|
||||
while ( lib == nullptr ||
|
||||
lib->getId()==FWObjectDatabase::STANDARD_LIB_ID ||
|
||||
lib->getId()==FWObjectDatabase::TEMPLATE_LIB_ID ||
|
||||
lib->getId()==FWObjectDatabase::DELETED_OBJECTS_ID ||
|
||||
lib->isReadOnly() )
|
||||
@ -367,7 +368,8 @@ FWObject* ObjectManipulator::createObject(FWObject *parent,
|
||||
objType.toLatin1().constData(), objName.toLatin1().constData());
|
||||
}
|
||||
|
||||
while ( lib->getId()==FWObjectDatabase::STANDARD_LIB_ID ||
|
||||
while ( lib == nullptr ||
|
||||
lib->getId()==FWObjectDatabase::STANDARD_LIB_ID ||
|
||||
lib->getId()==FWObjectDatabase::TEMPLATE_LIB_ID ||
|
||||
lib->getId()==FWObjectDatabase::DELETED_OBJECTS_ID ||
|
||||
lib->isReadOnly() )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user