diff options
author | George Hazan <ghazan@miranda.im> | 2022-07-24 19:40:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-07-24 19:40:01 +0300 |
commit | 29588be35e719b4ed6c2408004bffb1cfa03b7c3 (patch) | |
tree | eeab35e222910ec106be5685edc0cd6adea77844 /src/mir_app | |
parent | c2e3471bcd79fdafc21d03bd5ee7c5572df263f8 (diff) |
attempt to avoid the unneeded message dialog after upgrade
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/database.cpp | 5 |
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))
|