]> git.sesse.net Git - kdenlive/commitdiff
Fix display of audio thumbs when opening a project
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 18 Oct 2008 17:08:35 +0000 (17:08 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 18 Oct 2008 17:08:35 +0000 (17:08 +0000)
svn path=/branches/KDE4/; revision=2475

src/clipmanager.cpp
src/mainwindow.cpp

index a01e958f0016d51333660a02a76b32e6475df88c..27891f66bb77ed7dca06684e151fa2b083322f8a 100644 (file)
@@ -26,9 +26,8 @@
 #include "docclipbase.h"
 #include "kdenlivedoc.h"
 
-ClipManager::ClipManager(KdenliveDoc *doc): m_doc(doc) {
+ClipManager::ClipManager(KdenliveDoc *doc): m_doc(doc), m_audioThumbsEnabled(false) {
     m_clipIdCounter = 1;
-    m_audioThumbsEnabled = KdenliveSettings::audiothumbnails();
 }
 
 ClipManager::~ClipManager() {
index f609da918425b742f0c6d9f211c29ffe18d9e647..f0e54c121e518d1d965bfc6677f1ea26bfd2a87d 100644 (file)
@@ -1264,7 +1264,7 @@ void MainWindow::connectDocument(TrackView *trackView, KdenliveDoc *doc) { //cha
     KdenliveSettings::setProject_display_ratio(doc->dar());
     m_projectList->updateAllClips();
     trackView->projectView()->updateAllThumbs();
-
+    doc->clipManager()->checkAudioThumbs();
 
     //m_overView->setScene(trackView->projectScene());
     //m_overView->scale(m_overView->width() / trackView->duration(), m_overView->height() / (50 * trackView->tracksNumber()));