From 832141776a88607179cc7aa487a1d86baacface9 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Tue, 21 Oct 2025 12:53:15 +0200 Subject: Bottomcontentscontainer: don't pass a parent for a sub-layout Layouts are parented to their containing layout by default, and layouts can't share a same parent. This prevent a runtime warning regarding QLayout. --- src/selectionmode/bottombarcontentscontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/selectionmode/bottombarcontentscontainer.cpp b/src/selectionmode/bottombarcontentscontainer.cpp index 124fae682..bb858b871 100644 --- a/src/selectionmode/bottombarcontentscontainer.cpp +++ b/src/selectionmode/bottombarcontentscontainer.cpp @@ -407,7 +407,7 @@ void BottomBarContentsContainer::addPasteContents() m_explanatoryLabel->setWordWrap(true); m_layout->addWidget(m_explanatoryLabel); - auto *vBoxLayout = new QVBoxLayout(this); + auto *vBoxLayout = new QVBoxLayout(); m_layout->addLayout(vBoxLayout); /** We are in "PasteContents" mode which means hiding the bottom bar is impossible. -- cgit v1.3