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
c18bf45a
Commit
c18bf45a
authored
Oct 21, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix opening project files with missing version number
CCBUG: 420494
parent
76b9492d
Pipeline
#38326
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/doc/documentvalidator.cpp
View file @
c18bf45a
...
...
@@ -126,6 +126,14 @@ QPair<bool, QString> DocumentValidator::validate(const double currentVersion)
}
}
}
if
(
qFuzzyIsNull
(
version
))
{
// version missing, try with latest
KMessageBox
::
sorry
(
QApplication
::
activeWindow
(),
i18n
(
"Version of the project file cannot be read.
\n
Attempting to open nonetheless."
),
i18n
(
"Incorrect project file"
));
version
=
currentVersion
;
}
// Upgrade the document to the latest version
if
(
!
upgrade
(
version
,
currentVersion
))
{
return
QPair
<
bool
,
QString
>
(
false
,
QString
());
...
...
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