]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/selectionmode/bottombarcontentscontainer.cpp
Add missing KF6::ColorScheme link
[dolphin.git] / src / selectionmode / bottombarcontentscontainer.cpp
index d571b0302ab3785eba85cc26b7fb63f2280162f6..0e3087a9c52f2b571a2af065a8d4a6ed4e81ee31 100644 (file)
@@ -483,7 +483,9 @@ std::vector<QAction *> 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<QAction *>{};
     }