From 45a38cb4b8a394e5ad61594392feb1bf20a110f5 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Thu, 3 Mar 2022 22:18:42 +0100 Subject: [PATCH] SessionController: fix crash when closing a session within a KPart on macOS otherwise the popup menu will be cleaned up by the QScopedPointer too early for macOS, apparently... --- src/session/SessionController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session/SessionController.cpp b/src/session/SessionController.cpp index 881b5271..5227b95b 100644 --- a/src/session/SessionController.cpp +++ b/src/session/SessionController.cpp @@ -1853,7 +1853,7 @@ void SessionController::showDisplayContextMenu(const QPoint &position) const auto old = popup->actions(); const KFileItemListProperties props({item}); - QScopedPointer ac(new KFileItemActions(popup)); + QScopedPointer ac(new KFileItemActions()); ac->setItemListProperties(props); #if KIO_VERSION >= QT_VERSION_CHECK(5, 82, 0)