]> git.sesse.net Git - kdenlive/blobdiff - src/customtrackview.cpp
Fix ungrouping not possible: http://www.kdenlive.org/mantis/view.php?id=2917
[kdenlive] / src / customtrackview.cpp
index b587488fb89a549c2e4cf2681dd15a6ddc88e9b4..116332ae76dd24bb1624a7474b883120f3655e95 100644 (file)
@@ -908,6 +908,10 @@ void CustomTrackView::mousePressEvent(QMouseEvent * event)
         }
 
         m_operationMode = NONE;
+       if (dragGroup == NULL) {
+           if (m_dragItem && m_dragItem->parentItem() && m_dragItem->parentItem() != m_selectionGroup)
+               dragGroup = static_cast<AbstractGroupItem*> (m_dragItem->parentItem());
+       }
         displayContextMenu(event->globalPos(), m_dragItem, dragGroup);
         m_menuPosition = m_clickEvent;
     }