aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-06-20 15:06:42 +0200
committerJean-Baptiste Mardelle <[email protected]>2015-06-20 15:06:42 +0200
commit79645afdd558a9b76755516a927be178245e03bb (patch)
tree55e3c8f74bd7bfccd9f0db103c1b1429fa70258d
parent5b4d3f7d8b08bd595c30b68e59eb440a830e7887 (diff)
Fix saving of timeline thumbnails for project re-opening
-rw-r--r--src/timeline/customtrackview.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/timeline/customtrackview.cpp b/src/timeline/customtrackview.cpp
index a9f530a..5d5523b 100644
--- a/src/timeline/customtrackview.cpp
+++ b/src/timeline/customtrackview.cpp
@@ -5396,16 +5396,14 @@ void CustomTrackView::updateSnapPoints(AbstractClipItem *selected, QList <GenTim
void CustomTrackView::slotSeekToPreviousSnap()
{
updateSnapPoints(NULL);
- GenTime res = m_scene->previousSnapPoint(GenTime(m_cursorPos, m_document->fps()));
- seekCursorPos((int) res.frames(m_document->fps()));
+ seekCursorPos((int) m_scene->previousSnapPoint(GenTime(m_cursorPos, m_document->fps())).frames(m_document->fps()));
checkScrolling();
}
void CustomTrackView::slotSeekToNextSnap()
{
updateSnapPoints(NULL);
- GenTime res = m_scene->nextSnapPoint(GenTime(m_cursorPos, m_document->fps()));
- seekCursorPos((int) res.frames(m_document->fps()));
+ seekCursorPos((int) m_scene->nextSnapPoint(GenTime(m_cursorPos, m_document->fps())).frames(m_document->fps()));
checkScrolling();
}
@@ -6256,13 +6254,13 @@ void CustomTrackView::saveThumbnails()
if (item->clipType() != Color) {
// Check if we have a cached thumbnail
if (item->clipType() == Image || item->clipType() == Text || item->clipType() == Audio) {
- QString thumb = thumbBase + item->getBinHash() + "_0.png";
+ QString thumb = thumbBase + item->getBinHash() + "#0.png";
if (!QFile::exists(thumb)) {
QPixmap pix(item->startThumb());
pix.save(thumb);
}
} else {
- QString startThumb = thumbBase + item->getBinHash() + '_';
+ QString startThumb = thumbBase + item->getBinHash() + '#';
QString endThumb = startThumb;
startThumb.append(QString::number((int) item->speedIndependantCropStart().frames(m_document->fps())) + ".png");
endThumb.append(QString::number((int) (item->speedIndependantCropStart() + item->speedIndependantCropDuration()).frames(m_document->fps()) - 1) + ".png");