mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-01 11:40:02 +03:00
Fix accessing empty object list
This commit is contained in:
@@ -222,6 +222,10 @@ void QObjectPropertyModel::setMultiObjects(QList<QObject *>* list)
|
||||
m_objects.clear();
|
||||
submit();
|
||||
|
||||
if (list->isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!list->contains(m_object)){
|
||||
m_object=list->at(0);
|
||||
list->removeAt(0);
|
||||
|
Reference in New Issue
Block a user