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...
wilder
Georg Gadinger 4 years ago committed by Tomaz Canabrava
parent 424eef1c19
commit 45a38cb4b8
  1. 2
      src/session/SessionController.cpp

@ -1853,7 +1853,7 @@ void SessionController::showDisplayContextMenu(const QPoint &position)
const auto old = popup->actions();
const KFileItemListProperties props({item});
QScopedPointer<KFileItemActions> ac(new KFileItemActions(popup));
QScopedPointer<KFileItemActions> ac(new KFileItemActions());
ac->setItemListProperties(props);
#if KIO_VERSION >= QT_VERSION_CHECK(5, 82, 0)

Loading…
Cancel
Save