Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
7c96bd22
Commit
7c96bd22
authored
Dec 12, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix crash on extract frame if image was already part of the project
Fixes
#1272
parent
b3c354c0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/monitor/monitor.cpp
View file @
7c96bd22
...
...
@@ -1298,7 +1298,7 @@ void Monitor::slotExtractCurrentFrame(QString frameName, bool addToProject)
KRecentDirs
::
add
(
QStringLiteral
(
":KdenliveFramesFolder"
),
QUrl
::
fromLocalFile
(
selectedFile
).
adjusted
(
QUrl
::
RemoveFilename
).
toLocalFile
());
if
(
addToProject
)
{
QString
folderInfo
=
pCore
->
bin
()
->
getCurrentFolder
();
pCore
->
bin
()
->
droppedUrls
(
QList
<
QUrl
>
{
QUrl
::
fromLocalFile
(
selectedFile
)},
folderInfo
);
QMetaObject
::
invokeMethod
(
pCore
->
bin
()
,
"
droppedUrls
"
,
Qt
::
QueuedConnection
,
Q_ARG
(
QList
<
QUrl
>
,
{
QUrl
::
fromLocalFile
(
selectedFile
)}
)
,
Q_ARG
(
QString
,
folderInfo
)
)
;
}
});
refreshMonitor
();
...
...
Write
Preview
Supports
Markdown
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