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
259
Issues
259
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
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
e5287c0d
Commit
e5287c0d
authored
Oct 21, 2020
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix opening project files with missing version number
CCBUG: 420494
parent
c8fe98b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/doc/documentvalidator.cpp
src/doc/documentvalidator.cpp
+8
-0
No files found.
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
());
...
...
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