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
d8ea4441
Commit
d8ea4441
authored
Oct 15, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix possible crash canceling archive
parent
0d85cef6
Pipeline
#248273
passed with stage
in 7 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/project/dialogs/archivewidget.cpp
View file @
d8ea4441
...
...
@@ -1091,11 +1091,12 @@ void ArchiveWidget::createArchive()
int
ix
=
0
;
bool
success
=
true
;
QMapIterator
<
QString
,
QString
>
i
(
m_filesList
);
int
max
=
m_filesList
.
count
();
while
(
i
.
hasNext
())
{
i
.
next
();
m_infoMessage
->
setText
(
i18n
(
"Archiving %1"
,
i
.
key
()));
success
=
archive
->
addLocalFile
(
i
.
key
(),
i
.
value
());
emit
archiveProgress
(
100
*
ix
/
m
_filesList
.
count
()
);
emit
archiveProgress
(
100
*
ix
/
m
ax
);
ix
++
;
if
(
!
success
)
{
break
;
...
...
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