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:
|
case RightDropArea:
|
||||||
ret = dropContentOuterHelper(_mainLayout, data, Qt::Horizontal, true);
|
ret = dropContentOuterHelper(_mainLayout, data, Qt::Horizontal, true);
|
||||||
break;
|
break;
|
||||||
|
case CenterDropArea:
|
||||||
case BottomDropArea:
|
case BottomDropArea:
|
||||||
ret = dropContentOuterHelper(_mainLayout, data, Qt::Vertical, true);
|
ret = dropContentOuterHelper(_mainLayout, data, Qt::Vertical, true);
|
||||||
break;
|
break;
|
||||||
@ -513,7 +514,7 @@ SectionWidget* ContainerWidget::dropContent(const InternalContentData& data, Sec
|
|||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return NULL;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSplitter* targetSectionSplitter = findParentSplitter(targetSection);
|
QSplitter* targetSectionSplitter = findParentSplitter(targetSection);
|
||||||
|
Loading…
Reference in New Issue
Block a user