mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
Fix removing layout in layout when removing item
This commit is contained in:
parent
ee07abb6c5
commit
02ee5864a3
@ -293,7 +293,7 @@ BaseDesignIntf *AbstractLayout::findPrior(BaseDesignIntf *item)
|
||||
void AbstractLayout::slotOnChildDestroy(QObject* child)
|
||||
{
|
||||
m_children.removeAll(static_cast<BaseDesignIntf*>(child));
|
||||
if (m_children.count()<2){
|
||||
if (m_children.count() < 2 && !static_cast<LayoutDesignIntf*>(child)){
|
||||
beforeDelete();
|
||||
} else {
|
||||
relocateChildren();
|
||||
|
Loading…
Reference in New Issue
Block a user