summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-04-02 15:34:17 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-04-02 15:34:17 +0300
commit5d41a4ccb44aaf0893895e9d7cec6cc4dfc156a2 (patch)
treed9bd9982a7c2e851b4d4b05f411dbed9f275bbaf
parentff474015eef9bbd70db28c1c64f97297dec9182e (diff)
fixes #2824 (Новый профиль автоматически создаётся в MDBX)
-rw-r--r--src/mir_app/src/database.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp
index 612174d972..630d8f9aab 100644
--- a/src/mir_app/src/database.cpp
+++ b/src/mir_app/src/database.cpp
@@ -416,6 +416,9 @@ static int tryCreateDatabase(const wchar_t *ptszProfile)
CreatePathToFileW(ptszProfile);
for (auto &p : arDbPlugins) {
+ if (!(p->capabilities & MDB_CAPS_CREATE))
+ continue;
+
int err = p->makeDatabase(ptszProfile);
if (err == ERROR_SUCCESS) {
g_bDbCreated = true;