From 8dc7456651251bc112b9edd9b5fd1c4849d7c83d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 19 Feb 2014 11:48:12 +0000 Subject: import to open a database in read-only mode git-svn-id: http://svn.miranda-ng.org/main/trunk@8172 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index 2e2adf9b50..05c9141a73 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -363,7 +363,7 @@ int tryOpenDatabase(const TCHAR *tszProfile) bWasOpened = true; // try to load database - MIDatabase *pDb = p->Load(tszProfile); + MIDatabase *pDb = p->Load(tszProfile, FALSE); if (pDb) { fillProfileName(tszProfile); currDblink = p; @@ -387,7 +387,7 @@ static int tryCreateDatabase(const TCHAR* ptszProfile) int err = p->makeDatabase(tszProfile); if (err == ERROR_SUCCESS) { g_bDbCreated = true; - MIDatabase *pDb = p->Load(tszProfile); + MIDatabase *pDb = p->Load(tszProfile, FALSE); if (pDb != NULL) { fillProfileName(tszProfile); currDblink = p; -- cgit v1.2.3