From: Jean-Baptiste Mardelle Date: Mon, 30 Mar 2009 17:09:09 +0000 (+0000) Subject: Fix crash when adding clip to project: X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8cd10346c5ac4b5b98f0df62568ba5054fc17e8b;p=kdenlive Fix crash when adding clip to project: http://www.kdenlive.org:80/mantis/view.php?id=738 svn path=/trunk/kdenlive/; revision=3187 --- diff --git a/src/docclipbase.cpp b/src/docclipbase.cpp index db6cd892..4ebed002 100644 --- a/src/docclipbase.cpp +++ b/src/docclipbase.cpp @@ -585,7 +585,7 @@ void DocClipBase::clearProperty(const QString &key) { m_properties.remove(key); } -void DocClipBase::getFileHash(const QString &url) { +void DocClipBase::getFileHash(const QString url) { if (m_clipType == SLIDESHOW) return; QFile file(url); if (file.open(QIODevice::ReadOnly)) { // write size and hash only if resource points to a file diff --git a/src/docclipbase.h b/src/docclipbase.h index d951da50..063731e0 100644 --- a/src/docclipbase.h +++ b/src/docclipbase.h @@ -212,7 +212,7 @@ private: // Private attributes void slotCreateAudioTimer(); void slotRefreshProducer(); void setProducerProperty(const char *name, int data); - void getFileHash(const QString &url); + void getFileHash(const QString url); public slots: void updateAudioThumbnail(QMap > data);