]> git.sesse.net Git - kdenlive/commitdiff
cleanup & fix possible crash with undo stack
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 27 Jul 2010 12:04:24 +0000 (12:04 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 27 Jul 2010 12:04:24 +0000 (12:04 +0000)
svn path=/trunk/kdenlive/; revision=4658

src/customtrackview.cpp

index 626f99ec4308deef895907656cf2400e7a1992cd..10d45ec935f754c04c66c3dbb7d4a17643ac5cc7 100644 (file)
@@ -5359,7 +5359,7 @@ void CustomTrackView::slotUpdateAllThumbs()
     for (int i = 0; i < itemList.count(); i++) {
         if (itemList.at(i)->type() == AVWIDGET) {
             item = static_cast <ClipItem *>(itemList.at(i));
-            if (item->clipType() != COLOR && item->clipType() != AUDIO) {
+            if (item && item->isEnabled() && item->clipType() != COLOR && item->clipType() != AUDIO) {
                 // Check if we have a cached thumbnail
                 if (item->clipType() == IMAGE || item->clipType() == TEXT) {
                     QString thumb = thumbBase + item->baseClip()->getClipHash() + "_0.png";
@@ -5384,9 +5384,8 @@ void CustomTrackView::slotUpdateAllThumbs()
                         item->slotSetEndThumb(pix);
                     }
                 }
+               item->refreshClip(false);
             }
-            item->refreshClip(false);
-            //qApp->processEvents();
         }
     }
     viewport()->update();