X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/079f903bc8691866b4aa3c3e41204a47e735c062..6e752f507a1dd82a40d4bd140457203842fc0c80:/src/selectionmode/bottombarcontentscontainer.cpp diff --git a/src/selectionmode/bottombarcontentscontainer.cpp b/src/selectionmode/bottombarcontentscontainer.cpp index d571b0302..0e3087a9c 100644 --- a/src/selectionmode/bottombarcontentscontainer.cpp +++ b/src/selectionmode/bottombarcontentscontainer.cpp @@ -483,7 +483,9 @@ std::vector BottomBarContentsContainer::contextActionsFor(const KFile if (selectedItems.isEmpty()) { // There are no contextual actions to show for these items. // We might even want to hide this bar in this case. To make this clear, we reset m_internalContextMenu. - m_internalContextMenu.release()->deleteLater(); + if (m_internalContextMenu) { + m_internalContextMenu.release()->deleteLater(); + } return std::vector{}; }