]> git.sesse.net Git - kdenlive/commitdiff
Fix proxy clips reloaded twice on project opening:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 6 Jul 2011 11:05:12 +0000 (11:05 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 6 Jul 2011 11:05:12 +0000 (11:05 +0000)
http://kdenlive.org/mantis/view.php?id=2218

svn path=/trunk/kdenlive/; revision=5769

src/projectlist.cpp
src/projectlist.h

index e5b240b3ac8b80aa6a2cf9bd607901c2ae73999e..03f05f84d7726282c07afe5787b428d950862ab5 100644 (file)
@@ -1074,7 +1074,7 @@ void ProjectList::slotAddClip(DocClipBase *clip, bool getProperties)
 
 void ProjectList::slotGotProxy(const QString &proxyPath)
 {
-    if (proxyPath.isEmpty()) return;
+    if (proxyPath.isEmpty() || !m_refreshed) return;
     QTreeWidgetItemIterator it(m_listView);
     ProjectItem *item;
 
@@ -1090,7 +1090,7 @@ void ProjectList::slotGotProxy(const QString &proxyPath)
 
 void ProjectList::slotGotProxy(ProjectItem *item)
 {
-    if (item == NULL) return;
+    if (item == NULL || !m_refreshed) return;
     DocClipBase *clip = item->referencedClip();
     // Proxy clip successfully created
     QDomElement e = clip->toXML().cloneNode().toElement();
index 934856ef016c7a4b7a7c71b47b2636414fa30f5b..b064f4ba1fa1c9fda271d13ca04fbd33a0715802 100644 (file)
@@ -259,7 +259,7 @@ private:
     QMenu *m_transcodeAction;
     KdenliveDoc *m_doc;
     ItemDelegate *m_listViewDelegate;
-    /** @brief True if we have not yet finished opening the document. */
+    /** @brief False if we have not yet finished opening the document. */
     bool m_refreshed;
     QToolButton *m_addButton;
     QToolButton *m_deleteButton;