diff options
Diffstat (limited to 'plugins/Db3x_mmap/src/dbintf.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbintf.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/src/dbintf.cpp b/plugins/Db3x_mmap/src/dbintf.cpp index 2a6b3be65c..d481fd1afa 100644 --- a/plugins/Db3x_mmap/src/dbintf.cpp +++ b/plugins/Db3x_mmap/src/dbintf.cpp @@ -135,10 +135,19 @@ int CDb3Mmap::Load(bool bSkipInit) // everything is ok, go on
if (!m_bReadOnly) {
+ bool bConversion = false;
if (m_dbHeader.version < DB_095_VERSION) {
ConvertContacts();
+ bConversion = true;
+ }
+
+ if (m_dbHeader.version < DB_095_1_VERSION) {
+ ConvertEvents();
+ bConversion = true;
+ }
- m_dbHeader.version = DB_095_VERSION;
+ if (bConversion) {
+ m_dbHeader.version = DB_095_1_VERSION;
DBWrite(sizeof(dbSignatureU), &m_dbHeader.version, sizeof(m_dbHeader.version));
}
|