mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-24 05:22:06 +08:00
fix: adding a new SC without target SW to CenterDropArea causes invalid state
This commit is contained in:
parent
0317c3ebeb
commit
6420381354
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user