fix: adding a new SC without target SW to CenterDropArea causes invalid state

This commit is contained in:
mfreiholz 2016-07-15 08:43:49 +02:00
parent 0317c3ebeb
commit 6420381354

View File

@ -504,6 +504,7 @@ SectionWidget* ContainerWidget::dropContent(const InternalContentData& data, Sec
case RightDropArea:
ret = dropContentOuterHelper(_mainLayout, data, Qt::Horizontal, true);
break;
case CenterDropArea:
case BottomDropArea:
ret = dropContentOuterHelper(_mainLayout, data, Qt::Vertical, true);
break;
@ -513,7 +514,7 @@ SectionWidget* ContainerWidget::dropContent(const InternalContentData& data, Sec
default:
return NULL;
}
return NULL;
return ret;
}
QSplitter* targetSectionSplitter = findParentSplitter(targetSection);