summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-07-24 19:40:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-07-24 19:40:01 +0300
commit29588be35e719b4ed6c2408004bffb1cfa03b7c3 (patch)
treeeeab35e222910ec106be5685edc0cd6adea77844 /src/mir_app
parentc2e3471bcd79fdafc21d03bd5ee7c5572df263f8 (diff)
attempt to avoid the unneeded message dialog after upgrade
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/database.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp
index d20361c3b4..c48bb5941f 100644
--- a/src/mir_app/src/database.cpp
+++ b/src/mir_app/src/database.cpp
@@ -492,6 +492,11 @@ int LoadDatabaseModule(void)
PathToAbsoluteW(L".", tmp);
_wchdir(tmp);
+ while (!_waccess(L"libmdbx.mir", 0)) {
+ DeleteFileW(L"libmdbx.mir"); // just to be sure
+ SleepEx(50, TRUE);
+ }
+
// find out which profile to load
MFilePath szProfile;
if (!getProfile(szProfile))