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
259
Issues
259
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
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
Multimedia
Kdenlive
Commits
bfff60a1
Commit
bfff60a1
authored
Dec 02, 2020
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash moving project's custom folder
parent
bd8b6cdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
src/doc/kdenlivedoc.cpp
src/doc/kdenlivedoc.cpp
+1
-2
src/project/projectmanager.cpp
src/project/projectmanager.cpp
+1
-1
No files found.
src/doc/kdenlivedoc.cpp
View file @
bfff60a1
...
...
@@ -676,7 +676,6 @@ void KdenliveDoc::setProjectFolder(const QUrl &url)
void
KdenliveDoc
::
moveProjectData
(
const
QString
&
/*src*/
,
const
QString
&
dest
)
{
// Move proxies
QList
<
QUrl
>
cacheUrls
;
auto
binClips
=
pCore
->
projectItemModel
()
->
getAllClipIds
();
// First step: all clips referenced by the bin model exist and are inserted
...
...
@@ -707,7 +706,7 @@ void KdenliveDoc::moveProjectData(const QString & /*src*/, const QString &dest)
if
(
proxyDir
.
mkpath
(
QStringLiteral
(
"."
)))
{
KIO
::
CopyJob
*
job
=
KIO
::
move
(
cacheUrls
,
QUrl
::
fromLocalFile
(
proxyDir
.
absolutePath
()));
KJobWidgets
::
setWindow
(
job
,
QApplication
::
activeWindow
());
if
(
static_cast
<
int
>
(
job
->
exec
())
>
0
)
{
if
(
!
job
->
exec
()
)
{
KMessageBox
::
sorry
(
QApplication
::
activeWindow
(),
i18n
(
"Moving proxy clips failed: %1"
,
job
->
errorText
()));
}
}
...
...
src/project/projectmanager.cpp
View file @
bfff60a1
...
...
@@ -848,10 +848,10 @@ void ProjectManager::saveZone(const QStringList &info, const QDir &dir)
void
ProjectManager
::
moveProjectData
(
const
QString
&
src
,
const
QString
&
dest
)
{
// Move tmp folder (thumbnails, timeline preview)
m_project
->
moveProjectData
(
src
,
dest
);
KIO
::
CopyJob
*
copyJob
=
KIO
::
move
(
QUrl
::
fromLocalFile
(
src
),
QUrl
::
fromLocalFile
(
dest
));
connect
(
copyJob
,
&
KJob
::
result
,
this
,
&
ProjectManager
::
slotMoveFinished
);
connect
(
copyJob
,
SIGNAL
(
percent
(
KJob
*
,
ulong
)),
this
,
SLOT
(
slotMoveProgress
(
KJob
*
,
ulong
)));
m_project
->
moveProjectData
(
src
,
dest
);
}
void
ProjectManager
::
slotMoveProgress
(
KJob
*
,
unsigned
long
progress
)
...
...
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