Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Heiko Becker
kdenlive
Commits
13326c99
Commit
13326c99
authored
Apr 08, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix title clip thumbs not updated on change. Fixes #128
parent
c43b03db
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
src/bin/projectclip.cpp
src/bin/projectclip.cpp
+1
-1
src/utils/thumbnailcache.cpp
src/utils/thumbnailcache.cpp
+1
-0
src/utils/thumbnailcache.hpp
src/utils/thumbnailcache.hpp
+1
-1
No files found.
src/bin/projectclip.cpp
View file @
13326c99
...
...
@@ -1044,7 +1044,7 @@ void ProjectClip::setProperties(const QMap<QString, QString> &properties, bool r
updateTimelineClips
(
updateRoles
);
}
}
if
(
!
passProperties
.
isEmpty
())
{
if
(
!
passProperties
.
isEmpty
()
&&
(
!
reload
||
refreshOnly
)
)
{
if
(
auto
ptr
=
m_model
.
lock
())
emit
std
::
static_pointer_cast
<
ProjectItemModel
>
(
ptr
)
->
updateTimelineProducers
(
m_binId
,
passProperties
);
}
}
...
...
src/utils/thumbnailcache.cpp
View file @
13326c99
...
...
@@ -128,6 +128,7 @@ QImage ThumbnailCache::getThumbnail(const QString &binId, int pos, bool volatile
}
QDir
thumbFolder
=
getDir
(
&
ok
);
if
(
ok
&&
thumbFolder
.
exists
(
key
))
{
m_storedOnDisk
[
binId
].
push_back
(
pos
);
return
QImage
(
thumbFolder
.
absoluteFilePath
(
key
));
}
return
QImage
();
...
...
src/utils/thumbnailcache.hpp
View file @
13326c99
...
...
@@ -93,5 +93,5 @@ protected:
// the following maps keeps track of the positions that we store for each clip in volatile caches.
// Note that we don't track deletions due to items dropped from the cache. So the maps can contain more items that are currently stored.
std
::
unordered_map
<
QString
,
std
::
vector
<
int
>>
m_storedVolatile
;
std
::
unordered_map
<
QString
,
std
::
vector
<
int
>>
m_storedOnDisk
;
mutable
std
::
unordered_map
<
QString
,
std
::
vector
<
int
>>
m_storedOnDisk
;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment