Commit 6d91a88a authored by David Jarvie's avatar David Jarvie
Browse files

Revert 6523a907cb950c5f5eabf943408e06d46f89b412

parent bb62462e
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment