]> git.sesse.net Git - kdenlive/commitdiff
use kde-tmp dir (/tmp/kde-$USER) for storing thumbs (subdir kdenlive)
authorMarco Gittler <marco@gitma.de>
Wed, 5 Mar 2008 12:15:45 +0000 (12:15 +0000)
committerMarco Gittler <marco@gitma.de>
Wed, 5 Mar 2008 12:15:45 +0000 (12:15 +0000)
svn path=/branches/KDE4/; revision=1999

src/kthumb.cpp

index 5842375b7e21eb1808693c0bd4c66712dde962ec..92ff342d0741d3cb394e9556bf05450b27906ff7 100644 (file)
@@ -28,6 +28,7 @@
 #include <kdenlivesettings.h>
 #include <kfileitem.h>
 #include <kmessagebox.h>
+#include <KStandardDirs>
 
 #include <mlt++/Mlt.h>
 
@@ -140,7 +141,7 @@ KThumb::KThumb(ClipManager *clipManager, KUrl url, int width, int height, QObjec
     m_profile = new Mlt::Profile((char*) KdenliveSettings::current_profile().data());
     QCryptographicHash context(QCryptographicHash::Sha1);
     context.addData((KFileItem(m_url, "text/plain", S_IFREG).timeString() + m_url.fileName()).toAscii().data());
-    m_thumbFile = KdenliveSettings::currenttmpfolder() + context.result().toHex() + ".thumb";
+    m_thumbFile = KGlobal::dirs()->saveLocation("tmp" , "kdenlive" ) + context.result().toHex() + ".thumb";
     kDebug() << "thumbfile=" << m_thumbFile;
 }