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
PIM
KAlarm
Commits
6d91a88a
Commit
6d91a88a
authored
Sep 10, 2014
by
David Jarvie
Browse files
Revert 6523a907cb950c5f5eabf943408e06d46f89b412
parent
bb62462e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/compatibilityattribute.cpp
View file @
6d91a88a
...
...
@@ -123,8 +123,7 @@ void CompatibilityAttribute::deserialize(const QByteArray &data)
// 0: calendar format compatibility
const
int
c
=
items
[
index
++
].
toInt
(
&
ok
);
const
KACalendar
::
Compat
AllCompat
(
KACalendar
::
Current
|
KACalendar
::
Converted
|
KACalendar
::
Convertible
|
KACalendar
::
Incompatible
|
KACalendar
::
Unknown
);
if
(
!
ok
||
(
c
&
AllCompat
)
!=
c
)
{
if
(
!
ok
||
(
c
&
AllCompat
)
!=
c
)
{
qCritical
()
<<
"Invalid compatibility:"
<<
c
;
return
;
}
...
...
@@ -133,8 +132,7 @@ void CompatibilityAttribute::deserialize(const QByteArray &data)
if
(
count
>
index
)
{
// 1: KAlarm calendar version number
const
int
c
=
items
[
index
++
].
toInt
(
&
ok
);
if
(
!
ok
)
{
if
(
!
ok
)
{
qCritical
()
<<
"Invalid version:"
<<
c
;
return
;
}
...
...
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