Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/serialization/itemrepositoryregistry.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 59 | { | |||
---|---|---|---|---|---|
69 | } | 69 | } | ||
70 | 70 | | |||
71 | if (dir.exists(QStringLiteral("is_writing"))) { | 71 | if (dir.exists(QStringLiteral("is_writing"))) { | ||
72 | qCWarning(SERIALIZATION) << "repository" << path << "was write-locked, it probably is inconsistent"; | 72 | qCWarning(SERIALIZATION) << "repository" << path << "was write-locked, it probably is inconsistent"; | ||
73 | return true; | 73 | return true; | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | if (!dir.exists(QStringLiteral("version_%1").arg(staticItemRepositoryVersion()))) { | 76 | if (!dir.exists(QStringLiteral("version_%1").arg(staticItemRepositoryVersion()))) { | ||
77 | qCWarning(SERIALIZATION) << "version-hint not found, seems to be an old version"; | 77 | qCWarning(SERIALIZATION) << "version mismatch or no version hint; expected version:" << staticItemRepositoryVersion(); | ||
kfunk: Could probably print the `staticItemRepositoryVersion()`, too. | |||||
78 | return true; | 78 | return true; | ||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | QFile crashesFile(dir.filePath(QStringLiteral("crash_counter"))); | 81 | QFile crashesFile(dir.filePath(QStringLiteral("crash_counter"))); | ||
82 | if (crashesFile.open(QIODevice::ReadOnly)) { | 82 | if (crashesFile.open(QIODevice::ReadOnly)) { | ||
83 | int count; | 83 | int count; | ||
84 | QDataStream stream(&crashesFile); | 84 | QDataStream stream(&crashesFile); | ||
85 | stream >> count; | 85 | stream >> count; | ||
▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines |
Could probably print the staticItemRepositoryVersion(), too.