]> git.sesse.net Git - kdenlive/commitdiff
Fix title thumbnails
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 16 Aug 2009 06:18:22 +0000 (06:18 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 16 Aug 2009 06:18:22 +0000 (06:18 +0000)
svn path=/trunk/kdenlive/; revision=3823

src/docclipbase.cpp

index f22410f1d237f091fea6640e1f10407919507f5d..6c3addf01ce4798a3715347fadf49a5673b5d4d4 100644 (file)
@@ -711,6 +711,7 @@ QString DocClipBase::getClipHash() const
     QString hash;
     if (m_clipType == SLIDESHOW) hash = QCryptographicHash::hash(m_properties.value("resource").toAscii().data(), QCryptographicHash::Md5).toHex();
     else if (m_clipType == COLOR) hash = QCryptographicHash::hash(m_properties.value("colour").toAscii().data(), QCryptographicHash::Md5).toHex();
+    else if (m_clipType == TEXT) hash = QCryptographicHash::hash(QString("title" + getId() + m_properties.value("xmldata")).toUtf8().data(), QCryptographicHash::Md5).toHex();
     else hash = m_properties.value("file_hash");
     return hash;
 }