]> git.sesse.net Git - kdenlive/blobdiff - src/projectitem.cpp
Only create audio thumbs when they are enabled, clear cache when disabled
[kdenlive] / src / projectitem.cpp
index f93c84c3b9da0ba3fa79e971cf1f14bf62e965a7..d861ef5c678a4031e6085a6cd7c85adde4309fa5 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "projectitem.h"
 #include "timecode.h"
-
+#include "kdenlivesettings.h"
 
 const int NameRole = Qt::UserRole;
 const int DurationRole = NameRole + 1;
@@ -222,7 +222,7 @@ void ProjectItem::setProperties(const QMap < QString, QString > &attributes, con
     m_element.setAttribute("resource", attributes["filename"]);
     m_element.setAttribute("type", (int) m_clipType);
 
-    m_clip->slotRequestAudioThumbs();
+    if (KdenliveSettings::audiothumbnails()) m_clip->slotRequestAudioThumbs();
     /*
      if (attributes.contains("height")) {
          m_height = attributes["height"].toInt();