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
e5287c0d
Commit
e5287c0d
authored
Oct 21, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix opening project files with missing version number
CCBUG: 420494
parent
c8fe98b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/doc/documentvalidator.cpp
View file @
e5287c0d
...
...
@@ -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
());
...
...
Julius Künzel
@jlskuz
mentioned in issue
#535 (closed)
·
Feb 22, 2021
mentioned in issue
#535 (closed)
mentioned in issue #535
Toggle commit list
Write
Preview
Supports
Markdown
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