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