From 642038135470a6585cb5132a6fb0d81ab1dcc1fe Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Fri, 15 Jul 2016 08:43:49 +0200 Subject: [PATCH] fix: adding a new SC without target SW to CenterDropArea causes invalid state --- AdvancedDockingSystem/src/ContainerWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AdvancedDockingSystem/src/ContainerWidget.cpp b/AdvancedDockingSystem/src/ContainerWidget.cpp index 36e8ea7..a7172f5 100644 --- a/AdvancedDockingSystem/src/ContainerWidget.cpp +++ b/AdvancedDockingSystem/src/ContainerWidget.cpp @@ -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);