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
258
Issues
258
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
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
27072ed4
Commit
27072ed4
authored
Apr 25, 2020
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always save a backup of original project file when archiving in case something goes wrong
parent
f655c919
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/project/dialogs/archivewidget.cpp
src/project/dialogs/archivewidget.cpp
+6
-0
No files found.
src/project/dialogs/archivewidget.cpp
View file @
27072ed4
...
...
@@ -28,6 +28,7 @@
#include "xml/xml.hpp"
#include "kdenlive_debug.h"
#include "doc/kdenlivedoc.h"
#include <KDiskFreeSpaceInfo>
#include <KGuiItem>
#include <KMessageBox>
...
...
@@ -868,6 +869,11 @@ bool ArchiveWidget::processProjectFile()
return
true
;
}
// Make a copy of original project file for extra safety
QString
backupPath
=
archive_url
->
url
().
toLocalFile
()
+
QDir
::
separator
()
+
m_name
+
QStringLiteral
(
"-backup.kdenlive"
);
QFile
source
(
pCore
->
currentDoc
()
->
url
().
toLocalFile
());
source
.
copy
(
backupPath
);
QString
path
=
archive_url
->
url
().
toLocalFile
()
+
QDir
::
separator
()
+
m_name
+
QStringLiteral
(
".kdenlive"
);
QFile
file
(
path
);
if
(
file
.
exists
()
&&
KMessageBox
::
warningYesNo
(
this
,
i18n
(
"Output file already exists. Do you want to overwrite it?"
))
!=
KMessageBox
::
Yes
)
{
...
...
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