diff options
| author | Sebastian Englbrecht <[email protected]> | 2026-05-23 17:40:53 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-05-28 08:59:00 +0000 |
| commit | 680ccee08cfac2b53bb7bf7d35b780889efa4b51 (patch) | |
| tree | d9c3bb191c4353a577bd11c4f9bd1b5297c12885 /src/dolphinmainwindow.cpp | |
| parent | 714830f8dda873fbefa6de9704c90220e16a6133 (diff) | |
dolphinmainwindow,kitemlistview: fix unowned object allocations
Parent QMenu to the main window so it is owned and deleted with it.
Register KItemListContainerAccessible in Qt's accessibility cache so
Qt takes ownership and deletes it with the container widget.
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 7d798ac17..ebd811efa 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -2875,7 +2875,7 @@ void DolphinMainWindow::updateSplitActions() popoutSplitAction->setEnabled(true); if (!m_splitViewAction->menu()) { setActionPopupMode(m_splitViewAction, QToolButton::MenuButtonPopup); - m_splitViewAction->setMenu(new QMenu); + m_splitViewAction->setMenu(new QMenu(this)); m_splitViewAction->addAction(popoutSplitAction); } } else { |
