From: Jean-Baptiste Mardelle Date: Thu, 1 Dec 2011 14:34:20 +0000 (+0100) Subject: Fix disabling proxy on a clip when it crashed X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=116b6415b45fb0cef347e612994c8f9bd3cf8f7a;p=kdenlive Fix disabling proxy on a clip when it crashed --- diff --git a/src/clipmanager.cpp b/src/clipmanager.cpp index bb413bb5..cdd3eb0d 100644 --- a/src/clipmanager.cpp +++ b/src/clipmanager.cpp @@ -134,7 +134,7 @@ void ClipManager::stopThumbs(const QString &id) m_requestedThumbs.remove(id); m_thumbsMutex.unlock(); m_abortThumb = false; - if (!m_thumbsThread.isRunning()) { + if (!m_thumbsThread.isRunning() && !m_requestedThumbs.isEmpty()) { m_thumbsThread = QtConcurrent::run(this, &ClipManager::slotGetThumbs); } } diff --git a/src/projectlist.cpp b/src/projectlist.cpp index 66842bc6..c2ebfcfc 100644 --- a/src/projectlist.cpp +++ b/src/projectlist.cpp @@ -2834,6 +2834,10 @@ void ProjectList::setProxyStatus(ProjectItem *item, PROXYSTATUS status, int prog QDomElement xml = clip->toXML(); m_render->getFileProperties(xml, clip->getId(), m_listView->iconSize().height(), true); } + else { + // Disable proxy for this clip + clip->setProperty("proxy", "-"); + } } monitorItemEditing(true); }