Skip to content
GitLab
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
4e46e7df
Commit
4e46e7df
authored
Dec 08, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix crash opening project with broken autosaved files
parent
4ad5f344
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/project/projectmanager.cpp
View file @
4e46e7df
...
...
@@ -427,11 +427,6 @@ bool ProjectManager::checkForBackupFile(const QUrl &url, bool newFile)
// Found orphaned autosave file
orphanedFile
=
stale
;
break
;
}
else
{
// Another Kdenlive instance is probably handling this autosave file
staleFiles
.
removeAll
(
stale
);
delete
stale
;
continue
;
}
}
}
...
...
@@ -442,14 +437,13 @@ bool ProjectManager::checkForBackupFile(const QUrl &url, bool newFile)
doOpenFile
(
url
,
orphanedFile
);
return
true
;
}
// remove the stale files
for
(
KAutoSaveFile
*
stale
:
staleFiles
)
{
stale
->
open
(
QIODevice
::
ReadWrite
);
delete
stale
;
}
return
false
;
}
// remove the stale files
for
(
KAutoSaveFile
*
stale
:
staleFiles
)
{
stale
->
open
(
QIODevice
::
ReadWrite
);
delete
stale
;
}
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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