]> git.sesse.net Git - kdenlive/commitdiff
small fixes
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 29 Oct 2009 22:10:59 +0000 (22:10 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 29 Oct 2009 22:10:59 +0000 (22:10 +0000)
svn path=/trunk/kdenlive/; revision=4076

src/projectlist.cpp
src/projectlistview.cpp

index 5247e978cdcc04a208957d58e9fbeb7f374b3b84..2de55b32cc77ee9dd246a6e6aac2c21b8a6b2dc6 100644 (file)
@@ -644,7 +644,6 @@ void ProjectList::slotAddClip(DocClipBase *clip, bool getProperties)
     // Add cut zones
     QList <QPoint> cuts = clip->cutZones();
     if (!cuts.isEmpty()) {
-        m_listView->blockSignals(true);
         for (int i = 0; i < cuts.count(); i++) {
             SubProjectItem *sub = new SubProjectItem(item, cuts.at(i).x(), cuts.at(i).y());
             if (!clip->getClipHash().isEmpty()) {
@@ -654,7 +653,6 @@ void ProjectList::slotAddClip(DocClipBase *clip, bool getProperties)
                 }
             }
         }
-        m_listView->blockSignals(false);
     }
 
     if (getProperties && m_listView->isEnabled()) m_listView->blockSignals(false);
@@ -1237,7 +1235,6 @@ void ProjectList::slotAddClipCut(const QString &id, int in, int out)
 
 void ProjectList::addClipCut(const QString &id, int in, int out)
 {
-    //m_doc->slotAddClipCut(id, in, out, groupName, groupId);
     ProjectItem *clip = getItemById(id);
     if (clip) {
         DocClipBase *base = clip->referencedClip();
@@ -1254,7 +1251,6 @@ void ProjectList::addClipCut(const QString &id, int in, int out)
 
 void ProjectList::removeClipCut(const QString &id, int in, int out)
 {
-    //m_doc->slotAddClipCut(id, in, out, groupName, groupId);
     ProjectItem *clip = getItemById(id);
     if (clip) {
         DocClipBase *base = clip->referencedClip();
index 17f71189febc59d9f7fe2b85fb745474f31e9384..d0980e307b9935a9b534ff2095cea175de21d3e3 100644 (file)
@@ -131,7 +131,7 @@ void ProjectListView::mouseDoubleClickEvent(QMouseEvent * event)
         if ((columnAt(event->pos().x()) == 1)) QTreeWidget::mouseDoubleClickEvent(event);
     } else {
         if ((columnAt(event->pos().x()) == 1) && (item->clipType() == SLIDESHOW || item->clipType() == TEXT || item->clipType() == COLOR)) QTreeWidget::mouseDoubleClickEvent(event);
-        else if ((columnAt(event->pos().x()) == 2)) QTreeWidget::mouseDoubleClickEvent(event);
+        else if ((columnAt(event->pos().x()) == 2) && it->type() != QTreeWidgetItem::UserType + 1) QTreeWidget::mouseDoubleClickEvent(event);
         else emit showProperties(item->referencedClip());
     }
 }