diff options
| author | Méven Car <[email protected]> | 2025-10-21 12:53:15 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2025-10-21 12:53:15 +0200 |
| commit | 832141776a88607179cc7aa487a1d86baacface9 (patch) | |
| tree | 3fc8df9671442ac298b9be247cde5cb1c416fd65 /src | |
| parent | d7dc3253d5b475b63811c1a6ded907a99e68059b (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/selectionmode/bottombarcontentscontainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
