]> git.sesse.net Git - kdenlive/commitdiff
Fix ungrouping not possible: http://www.kdenlive.org/mantis/view.php?id=2917
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 31 Dec 2012 10:33:16 +0000 (11:33 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 31 Dec 2012 10:33:16 +0000 (11:33 +0100)
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;
     }